Fix migration error from 1.49

This commit is contained in:
ilyaigpetrov 2021-01-25 07:20:53 +00:00
parent d56a7e7366
commit e51673f268

View File

@ -552,7 +552,7 @@
} }
if (oldAntiCensorRu.version && window.apis.version.isLeq(oldAntiCensorRu.version, '0.0.1.49')) { if (oldAntiCensorRu.version && window.apis.version.isLeq(oldAntiCensorRu.version, '0.0.1.49')) {
const modsMutated = window.apis.pacKitchen.getPacModsRaw(); const modsMutated = window.apis.pacKitchen.getPacModsRaw();
if (modsMutated) { if (modsMutated && modsMutated.exceptions) {
modsMutated.exceptions = Object.entries(modsMutated.exceptions).reduce((acc, [host, ifProxy]) => { modsMutated.exceptions = Object.entries(modsMutated.exceptions).reduce((acc, [host, ifProxy]) => {
acc[\`*.\${host}\`] = ifProxy; acc[\`*.\${host}\`] = ifProxy;
return acc; return acc;