[Splash > Backend] Fix syntax error in stripped, tweak source a bit

This commit is contained in:
Ducko 2022-02-15 19:15:09 +00:00
parent f15f8cff11
commit 99a20ceca7
1 changed files with 4 additions and 7 deletions

View File

@ -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 => {
scheduleNextUpdate(res);
sendState(UPDATE_FAILURE); sendState(UPDATE_FAILURE);
}); await new Promise(res => scheduleNextUpdate(res));
}
} }
} }
};
const initModuleUpdater = () => { // "Old" (not v2 / new, win32 only) const initModuleUpdater = () => { // "Old" (not v2 / new, win32 only)
const add = (event, listener) => { const add = (event, listener) => {