From b81a7d95acc0a944f27cb044e94e28265f4b0746 Mon Sep 17 00:00:00 2001 From: "Ilya Ig. Petrov" Date: Sat, 26 Aug 2017 21:45:59 +0500 Subject: [PATCH] Make Anticensority script default, switch to it on update --- .../37-sync-pac-script-with-pac-provider-api.tmpl.js | 7 ++----- 1 file changed, 2 insertions(+), 5 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 e2184dc..017ddf7 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 @@ -221,7 +221,7 @@ }, - _currentPacProviderKey: 'Антизапрет', + _currentPacProviderKey: 'Антицензорити', /* Is it the first time extension installed? Do something, e.g. initiate PAC sync. @@ -541,10 +541,7 @@ console.log('Updating from ', oldStorage.version, 'to', antiCensorRu.version); const key = antiCensorRu._currentPacProviderKey; if (key !== null) { - const ifVeryOld = !Object.keys(antiCensorRu.pacProviders).includes(key); - if (ifVeryOld) { - antiCensorRu._currentPacProviderKey = 'Антизапрет'; - } + antiCensorRu._currentPacProviderKey = 'Антицензорити'; } antiCensorRu.pushToStorageAsync(() => {