mirror of
https://github.com/anticensority/runet-censorship-bypass.git
synced 2024-11-24 02:13:43 +03:00
Make Anticensority script default, switch to it on update
This commit is contained in:
parent
85b8dec3b3
commit
b81a7d95ac
|
@ -221,7 +221,7 @@
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
_currentPacProviderKey: 'Антизапрет',
|
_currentPacProviderKey: 'Антицензорити',
|
||||||
|
|
||||||
/* Is it the first time extension installed?
|
/* Is it the first time extension installed?
|
||||||
Do something, e.g. initiate PAC sync.
|
Do something, e.g. initiate PAC sync.
|
||||||
|
@ -541,10 +541,7 @@
|
||||||
console.log('Updating from ', oldStorage.version, 'to', antiCensorRu.version);
|
console.log('Updating from ', oldStorage.version, 'to', antiCensorRu.version);
|
||||||
const key = antiCensorRu._currentPacProviderKey;
|
const key = antiCensorRu._currentPacProviderKey;
|
||||||
if (key !== null) {
|
if (key !== null) {
|
||||||
const ifVeryOld = !Object.keys(antiCensorRu.pacProviders).includes(key);
|
antiCensorRu._currentPacProviderKey = 'Антицензорити';
|
||||||
if (ifVeryOld) {
|
|
||||||
antiCensorRu._currentPacProviderKey = 'Антизапрет';
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
antiCensorRu.pushToStorageAsync(() => {
|
antiCensorRu.pushToStorageAsync(() => {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user