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