From 23fb55bf38469a5dcc2dd7b8c45807f5535d6382 Mon Sep 17 00:00:00 2001 From: hackademix Date: Sun, 26 May 2019 15:42:00 +0200 Subject: More accurate algorithm to account for permissions changes in the UI triggering automatic reloads. --- src/ui/popup.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ui/popup.js') 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( -- cgit v1.2.3