mirror of
https://github.com/anticensority/runet-censorship-bypass.git
synced 2024-11-23 18:03:44 +03:00
Make Firefox load PAC on each start
This commit is contained in:
parent
609017da1a
commit
aa21b5ad9e
|
@ -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();
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user