aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorRahiel Kasim <rahielkasim@gmail.com>2019-04-13 13:21:20 +0200
committerRahiel Kasim <rahielkasim@gmail.com>2019-04-13 13:21:20 +0200
commit5d010a9607f29d6562bbcad983823d9a9fd43e28 (patch)
tree0b4398704fa3696d2d1c25e9336edea1a3bc1ee0
parentf0c64091421b4d7d053bd257599b9204f8627b2b (diff)
default archive now to archive.is and archive.org, delete unused code
-rw-r--r--src/archiveror.js1
-rw-r--r--src/utils.js2
2 files changed, 1 insertions, 2 deletions
diff --git a/src/archiveror.js b/src/archiveror.js
index 8225985..0acecbf 100644
--- a/src/archiveror.js
+++ b/src/archiveror.js
@@ -22,7 +22,6 @@ function archive_is(url) {
let link;
if (response.url.includes("/submit")) {
let text = await response.text();
- let html = new DOMParser().parseFromString(text, "text/html");
let re = /"(https?:\/\/archive\..+?\/.+?)"/;
link = text.match(re)[1];
} else {
diff --git a/src/utils.js b/src/utils.js
index 68c2268..f4d1e85 100644
--- a/src/utils.js
+++ b/src/utils.js
@@ -3,7 +3,7 @@ export const services = ["archive.is", "archive.org", "perma.cc", "webcitation.o
export const defaults = {
archiveBookmarks: true,
archiveDir: "Archiveror",
- archiveServices: ["archive.is"],
+ archiveServices: ["archive.is", "archive.org"],
background: false,
bookmarkServices: ["archive.is"],
email: "",