Fix migration bug

This commit is contained in:
Ilya Ig. Petrov 2017-11-01 00:19:45 +05:00
parent 9b35c413cc
commit 558d67204b

View File

@ -538,7 +538,7 @@
// Change semicolons to semicolons followed by newlines in proxy string (raw). // Change semicolons to semicolons followed by newlines in proxy string (raw).
const migrateProxies = (oldStr) => oldStr.replace(/;\\r?\\n?/g, ';\\n'); const migrateProxies = (oldStr) => oldStr.replace(/;\\r?\\n?/g, ';\\n');
const modsMutated = window.apis.pacKitchen.getPacModsRaw(); const modsMutated = window.apis.pacKitchen.getPacModsRaw();
modsMutated['customProxyStringRaw'] = migrateProxies(conf.value); modsMutated['customProxyStringRaw'] = migrateProxies(modsMutated['customProxyStringRaw']);
window.apis.pacKitchen.keepCookedNowAsync(modsMutated, ifUpdatedCb); window.apis.pacKitchen.keepCookedNowAsync(modsMutated, ifUpdatedCb);
} else { } else {