summaryrefslogtreecommitdiff
path: root/src/ui
diff options
context:
space:
mode:
authorhackademix2019-12-11 13:02:10 +0100
committerhackademix2019-12-11 21:19:18 +0100
commit528c8ea57790738564cf42b6fb499bdfd7f2e78a (patch)
treeaafe6625c08f8a67e52a8199074b5742c297204e /src/ui
parent974d22848d88ac0e02977090053aa331bb41d8e9 (diff)
downloadnoscript-528c8ea57790738564cf42b6fb499bdfd7f2e78a.tar.gz
noscript-528c8ea57790738564cf42b6fb499bdfd7f2e78a.tar.xz
noscript-528c8ea57790738564cf42b6fb499bdfd7f2e78a.zip
Fixed shortcut and context menu doing nothing unless browserAction icon is visible on Firefox (issue #58).
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/popup.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/ui/popup.js b/src/ui/popup.js
index c29b94d..4b5dc85 100644
--- a/src/ui/popup.js
+++ b/src/ui/popup.js
@@ -43,10 +43,9 @@ addEventListener("unload", e => {
tabId = tab.id;
}
-
+ let port = browser.runtime.connect({name: "noscript.popup"});
await UI.init(tabId);
- let port = browser.runtime.connect({name: "noscript.popup"})
function pendingReload(b) {
try {
port.postMessage({tabId, pendingReload: b});