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 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;
}

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