aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorRahiel Kasim <rahielkasim@gmail.com>2018-04-28 15:19:56 +0200
committerRahiel Kasim <rahielkasim@gmail.com>2018-04-28 15:20:53 +0200
commitdb5f7548bb7f190e92c3fe32b8c9453c5b2c608a (patch)
tree30a1540c910b4affbf409b8e2fe7c677177a1143
parent317460d1f5692119e1b932e4725612ede9536788 (diff)
context menu fix
-rw-r--r--src/archiveror.js4
-rw-r--r--src/manifest.json2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/archiveror.js b/src/archiveror.js
index 149f683..56a9c9c 100644
--- a/src/archiveror.js
+++ b/src/archiveror.js
@@ -242,9 +242,9 @@ chrome.contextMenus.removeAll(function () {
chrome.contextMenus.onClicked.addListener(function (info, tab) {
if (info.menuItemId === "MHTML") {
saveLocal(tab, false);
- } else if (info.hasOwnProperty("linkUrl")) {
+ } else if (info.linkUrl) {
archiveOnline(info.linkUrl, [info.menuItemId]);
- } else if (info.hasOwnProperty("pageUrl")) {
+ } else if (info.pageUrl) {
archiveOnline(info.pageUrl, [info.menuItemId]);
}
});
diff --git a/src/manifest.json b/src/manifest.json
index 6e3be3e..1c2d9cf 100644
--- a/src/manifest.json
+++ b/src/manifest.json
@@ -3,7 +3,7 @@
"author": "Rahiel Kasim",
"description": "Archive webpages on archive.is, archive.org and more or on your own computer in MHTML format. Automatically archive your bookmarks.",
"homepage_url": "https://github.com/rahiel/archiveror",
- "version": "0.10",
+ "version": "0.10.1",
"applications": {
"gecko": {
"id": "archiveror@love.addons.mozilla.org",