diff --git a/extensions/chromium/runet-censorship-bypass/src/extension-common/35-pac-kitchen-api.js b/extensions/chromium/runet-censorship-bypass/src/extension-common/35-pac-kitchen-api.js index 214d16a..c3bf1c5 100644 --- a/extensions/chromium/runet-censorship-bypass/src/extension-common/35-pac-kitchen-api.js +++ b/extensions/chromium/runet-censorship-bypass/src/extension-common/35-pac-kitchen-api.js @@ -105,13 +105,14 @@ const getCurrentConfigs = function getCurrentConfigs() { const oldMods = kitchenState(modsKey); - if (oldMods) { + /*if (oldMods) { // No migration! return oldMods; - } + }*/ - // In case of first install. - const [err, mods, ...warns] = createPacModifiers(); + // Client may expect mods.included and mods.excluded! + // On first install they are not defined. + const [err, mods, ...warns] = createPacModifiers(oldMods); if (err) { throw err; } diff --git a/extensions/chromium/runet-censorship-bypass/src/extension-common/pages/exceptions/index.js b/extensions/chromium/runet-censorship-bypass/src/extension-common/pages/exceptions/index.js index 78d3f5e..c673243 100644 --- a/extensions/chromium/runet-censorship-bypass/src/extension-common/pages/exceptions/index.js +++ b/extensions/chromium/runet-censorship-bypass/src/extension-common/pages/exceptions/index.js @@ -21,12 +21,12 @@ chrome.runtime.getBackgroundPage( (backgroundPage) => # ПРОКСИРОВАТЬ: -${mods.included.join('\n')} +${(mods.included || []).join('\n')} =============================== # НЕ ПРОКСИРОВАТЬ: -${mods.excluded.join('\n')}`; +${(mods.excluded || []).join('\n')}`; status.innerText = 'Успешно загружено!';