diff --git a/extensions/chromium/runet-censorship-bypass/src/extension-common/37-sync-pac-script-with-pac-provider-api.tmpl.js b/extensions/chromium/runet-censorship-bypass/src/extension-common/37-sync-pac-script-with-pac-provider-api.tmpl.js index 9c07766..81edbc5 100644 --- a/extensions/chromium/runet-censorship-bypass/src/extension-common/37-sync-pac-script-with-pac-provider-api.tmpl.js +++ b/extensions/chromium/runet-censorship-bypass/src/extension-common/37-sync-pac-script-with-pac-provider-api.tmpl.js @@ -242,6 +242,12 @@ }, + clearLastModified() { + + this.setLastModified(0); + + }, + mustBeKey(key = mandatory()) { if ( !(key === null || this.pacProviders[key]) ) { @@ -519,6 +525,10 @@ // LAUNCH, RELOAD, ENABLE antiCensorRu.pacProviders = oldStorage.pacProviders; console.log('Extension launched, reloaded or enabled.'); + if (window.apis.platform.ifFirefox) { + antiCensorRu.clearLastModified(); + await new Promise((r) => antiCensorRu.syncWithPacProviderAsync(r)); // On each launch, ffx has no memory. + } return resolve(); }