summaryrefslogtreecommitdiff
path: root/src/ui/popup.js
diff options
context:
space:
mode:
authorhackademix2019-05-26 15:42:00 +0200
committerhackademix2019-05-26 15:42:00 +0200
commit23fb55bf38469a5dcc2dd7b8c45807f5535d6382 (patch)
treeab444b03dbe5af311d55af4ce7109eb1b8de9166 /src/ui/popup.js
parentb06ec5d1c81fe24f1e0c853a22360c29b1051f4a (diff)
downloadnoscript-23fb55bf38469a5dcc2dd7b8c45807f5535d6382.tar.gz
noscript-23fb55bf38469a5dcc2dd7b8c45807f5535d6382.tar.xz
noscript-23fb55bf38469a5dcc2dd7b8c45807f5535d6382.zip
More accurate algorithm to account for permissions changes in the UI triggering automatic reloads.
Diffstat (limited to 'src/ui/popup.js')
-rw-r--r--src/ui/popup.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui/popup.js b/src/ui/popup.js
index 310ecac..c29b94d 100644
--- a/src/ui/popup.js
+++ b/src/ui/popup.js
@@ -164,7 +164,7 @@ addEventListener("unload", e => {
sitesUI = new UI.Sites(document.getElementById("sites"));
sitesUI.onChange = (row) => {
- pendingReload(!row.temp2perm);
+ pendingReload(sitesUI.anyPermissionsChanged());
if (optionsClosed) return;
browser.tabs.query({
url: browser.extension.getURL(