summaryrefslogtreecommitdiff
path: root/src/ui
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/popup.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/ui/popup.js b/src/ui/popup.js
index 87ac73e..310ecac 100644
--- a/src/ui/popup.js
+++ b/src/ui/popup.js
@@ -166,8 +166,10 @@ addEventListener("unload", e => {
sitesUI.onChange = (row) => {
pendingReload(!row.temp2perm);
if (optionsClosed) return;
- browser.tabs.query({url: browser.runtime.getManifest().options_ui.page })
- .then(tabs => {
+ browser.tabs.query({
+ url: browser.extension.getURL(
+ browser.runtime.getManifest().options_ui.page)
+ }).then(tabs => {
browser.tabs.remove(tabs.map(t => t.id));
});
optionsClosed = true;