Index: lib/options.js |
=================================================================== |
--- a/lib/options.js |
+++ b/lib/options.js |
@@ -22,7 +22,8 @@ |
const {checkWhitelisted} = require("./whitelisting"); |
const info = require("../buildtools/info"); |
-const optionsUrl = "options.html"; |
+const manifest = browser.runtime.getManifest(); |
+const optionsUrl = manifest.options_page || manifest.options_ui.page; |
function findOptionsTab(callback) |
{ |
@@ -186,14 +187,10 @@ |
{ |
browser.runtime.getBrowserInfo().then(browserInfo => |
{ |
- if (browserInfo.name != "Fennec") |
- browser.browserAction.setPopup({popup: "popup.html"}); |
+ if (browserInfo.name == "Fennec") |
+ browser.browserAction.setPopup({popup: ""}); |
}); |
} |
-else |
-{ |
- browser.browserAction.setPopup({popup: "popup.html"}); |
-} |
// On Firefox for Android, open the options page directly when the browser |
// action is clicked. |