[Splash > Backend] Fix syntax error in stripped, tweak source a bit
This commit is contained in:
parent
f15f8cff11
commit
99a20ceca7
1 changed files with 4 additions and 7 deletions
|
@ -172,7 +172,6 @@ class UIProgress { // Generic class to track updating and sent states to splash
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const updateUntilCurrent = async () => {
|
const updateUntilCurrent = async () => {
|
||||||
|
@ -221,13 +220,11 @@ const updateUntilCurrent = async () => {
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
log('Splash', 'Update failed', e);
|
log('Splash', 'Update failed', e);
|
||||||
await new Promise(res => {
|
sendState(UPDATE_FAILURE);
|
||||||
scheduleNextUpdate(res);
|
await new Promise(res => scheduleNextUpdate(res));
|
||||||
sendState(UPDATE_FAILURE);
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
|
|
||||||
const initModuleUpdater = () => { // "Old" (not v2 / new, win32 only)
|
const initModuleUpdater = () => { // "Old" (not v2 / new, win32 only)
|
||||||
const add = (event, listener) => {
|
const add = (event, listener) => {
|
||||||
|
|
Loading…
Reference in a new issue