Migrate all exceptions to wildcarded state

This commit is contained in:
ilyaigpetrov 2021-01-17 16:30:12 +00:00
parent 9ef236d604
commit 14f32b4d13

View File

@ -551,7 +551,16 @@
}
}
if (oldAntiCensorRu.version && window.apis.version.isLeq(oldAntiCensorRu.version, '0.0.1.49')) {
// TODO:
const modsMutated = window.apis.pacKitchen.getPacModsRaw();
if (modsMutated) {
modsMutated.exceptions = Object.entries(modsMutated.exceptions).reduce((acc, [host, ifProxy]) => {
acc[\`*.\${host}\`] = ifProxy;
return acc;
}, {});
await new Promise(
(resolve) => window.apis.pacKitchen.keepCookedNowAsync(modsMutated, resolve),
);
}
}
/*