Fixed regression: file:/// URLs reloaded whenever NoScript gets reinstalled / enabled / reloaded.

This commit is contained in:
hackademix 2020-08-18 17:26:30 +02:00
parent b38a561ac3
commit 2905a6a543
1 changed files with 1 additions and 1 deletions

View File

@ -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;