From e4dbdd3736c97668b611e12a331d106a760af0ac Mon Sep 17 00:00:00 2001 From: "Ilya Ig. Petrov" Date: Fri, 15 Sep 2017 19:41:58 +0500 Subject: [PATCH] Take onlyOwnSites into account when updating --- .../37-sync-pac-script-with-pac-provider-api.tmpl.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 017ddf7..61fbd55 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 @@ -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(() => {