From e51673f2683df0164671f021e48575e50aa8003a Mon Sep 17 00:00:00 2001 From: ilyaigpetrov Date: Mon, 25 Jan 2021 07:20:53 +0000 Subject: [PATCH] Fix migration error from 1.49 --- .../37-sync-pac-script-with-pac-provider-api.tmpl.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 2569c19..1ffc43b 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 @@ -552,7 +552,7 @@ } if (oldAntiCensorRu.version && window.apis.version.isLeq(oldAntiCensorRu.version, '0.0.1.49')) { const modsMutated = window.apis.pacKitchen.getPacModsRaw(); - if (modsMutated) { + if (modsMutated && modsMutated.exceptions) { modsMutated.exceptions = Object.entries(modsMutated.exceptions).reduce((acc, [host, ifProxy]) => { acc[\`*.\${host}\`] = ifProxy; return acc;