Fixed regression: file:/// URLs reloaded whenever NoScript gets reinstalled / enabled / reloaded.
This commit is contained in:
parent
b38a561ac3
commit
2905a6a543
|
@ -93,7 +93,7 @@
|
||||||
let setup = policy => {
|
let setup = policy => {
|
||||||
debug("Fetched %o, readyState %s", policy, document.readyState); // DEV_ONLY
|
debug("Fetched %o, readyState %s", policy, document.readyState); // DEV_ONLY
|
||||||
this.setup(policy);
|
this.setup(policy);
|
||||||
if (syncLoad && !localPolicy) {
|
if (syncLoad && !localPolicy && originalState !== "complete") {
|
||||||
sessionStorage.setItem(localPolicyKey, JSON.stringify(policy));
|
sessionStorage.setItem(localPolicyKey, JSON.stringify(policy));
|
||||||
location.reload(false);
|
location.reload(false);
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue