mirror of
https://github.com/anticensority/runet-censorship-bypass.git
synced 2024-11-27 20:03:45 +03:00
s/cb/await
This commit is contained in:
parent
558d67204b
commit
ec692851d4
|
@ -511,7 +511,7 @@
|
|||
Better on each launch then on each pull.
|
||||
*/
|
||||
|
||||
await new Promise((resolve) => {
|
||||
await new Promise(async (resolve) => {
|
||||
|
||||
const ifUpdating = antiCensorRu.version !== oldStorage.version;
|
||||
if (!ifUpdating) {
|
||||
|
@ -539,11 +539,12 @@
|
|||
const migrateProxies = (oldStr) => oldStr.replace(/;\\r?\\n?/g, ';\\n');
|
||||
const modsMutated = window.apis.pacKitchen.getPacModsRaw();
|
||||
modsMutated['customProxyStringRaw'] = migrateProxies(modsMutated['customProxyStringRaw']);
|
||||
window.apis.pacKitchen.keepCookedNowAsync(modsMutated, ifUpdatedCb);
|
||||
await new Promise(
|
||||
(resolve) => window.apis.pacKitchen.keepCookedNowAsync(modsMutated, resolve),
|
||||
);
|
||||
|
||||
} else {
|
||||
ifUpdatedCb();
|
||||
}
|
||||
ifUpdatedCb();
|
||||
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user