From e6af4b07c12156f67497917990a21070072e8bf6 Mon Sep 17 00:00:00 2001 From: hackademix Date: Sat, 29 Feb 2020 19:03:39 +0100 Subject: Minor adjustments for Firefox Preview (Fenix) compatibility. --- src/ui/popup.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/ui/popup.js') diff --git a/src/ui/popup.js b/src/ui/popup.js index 07c21e4..63f9eee 100644 --- a/src/ui/popup.js +++ b/src/ui/popup.js @@ -65,7 +65,11 @@ addEventListener("unload", e => { { let clickHandlers = { "options": e => { - browser.runtime.openOptionsPage(); + if (UA.mobile) { // Fenix fails on openOptionsPage + browser.tabs.create({url: browser.extension.getURL("/ui/options.html")}); + } else { + browser.runtime.openOptionsPage(); + } close(); }, "close": close, -- cgit v1.2.3