mirror of
https://github.com/anticensority/runet-censorship-bypass.git
synced 2024-11-24 10:23:43 +03:00
Take onlyOwnSites into account when updating
This commit is contained in:
parent
5a4d52b0ad
commit
e4dbdd3736
|
@ -540,8 +540,10 @@
|
||||||
// UPDATE & MIGRATION
|
// UPDATE & MIGRATION
|
||||||
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 (oldStorage.version === ' 0.0.1.2') {
|
||||||
antiCensorRu._currentPacProviderKey = 'Антицензорити';
|
if (key !== null && key !== 'onlyOwnSites') {
|
||||||
|
antiCensorRu._currentPacProviderKey = 'Антицензорити';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
antiCensorRu.pushToStorageAsync(() => {
|
antiCensorRu.pushToStorageAsync(() => {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user