From 0c2df08d783549f74801e060d5656f9f1f7f22ac Mon Sep 17 00:00:00 2001 From: hackademix Date: Mon, 29 Apr 2019 09:43:14 +0200 Subject: Reference internal pages as absolute URLs for Chromium compatibility. --- src/bg/Settings.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/bg') diff --git a/src/bg/Settings.js b/src/bg/Settings.js index 28f880e..4fa83d0 100644 --- a/src/bg/Settings.js +++ b/src/bg/Settings.js @@ -180,7 +180,9 @@ var Settings = { async reloadOptionsUI() { try { - for (let t of await browser.tabs.query({url: browser.runtime.getManifest().options_ui.page })) { + for (let t of await browser.tabs.query({url: browser.extension.getURL( + browser.runtime.getManifest().options_ui.page) }) + ) { browser.tabs.reload(t.id); }; } catch (e) { -- cgit v1.2.3