From 2905a6a5433e4632a18f5221d83cb47701861e3d Mon Sep 17 00:00:00 2001 From: hackademix Date: Tue, 18 Aug 2020 17:26:30 +0200 Subject: [PATCH] Fixed regression: file:/// URLs reloaded whenever NoScript gets reinstalled / enabled / reloaded. --- src/content/staticNS.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/staticNS.js b/src/content/staticNS.js index d1e9817..aafaf69 100644 --- a/src/content/staticNS.js +++ b/src/content/staticNS.js @@ -93,7 +93,7 @@ let setup = policy => { debug("Fetched %o, readyState %s", policy, document.readyState); // DEV_ONLY this.setup(policy); - if (syncLoad && !localPolicy) { + if (syncLoad && !localPolicy && originalState !== "complete") { sessionStorage.setItem(localPolicyKey, JSON.stringify(policy)); location.reload(false); return;