Fix bug on import/export page

This commit is contained in:
Ilya Ig. Petrov 2017-05-18 21:23:27 +05:00
parent 992b7f024e
commit 0d00fb946e
2 changed files with 7 additions and 6 deletions

View File

@ -105,13 +105,14 @@
const getCurrentConfigs = function getCurrentConfigs() { const getCurrentConfigs = function getCurrentConfigs() {
const oldMods = kitchenState(modsKey); const oldMods = kitchenState(modsKey);
if (oldMods) { /*if (oldMods) {
// No migration! // No migration!
return oldMods; return oldMods;
} }*/
// In case of first install. // Client may expect mods.included and mods.excluded!
const [err, mods, ...warns] = createPacModifiers(); // On first install they are not defined.
const [err, mods, ...warns] = createPacModifiers(oldMods);
if (err) { if (err) {
throw err; throw err;
} }

View File

@ -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 = 'Успешно загружено!'; status.innerText = 'Успешно загружено!';