[mv3] Ensure ui is visible even after failure

This commit is contained in:
Raymond Hill 2025-08-29 11:19:24 -04:00
parent bc05f31cc2
commit d1a29d9899
No known key found for this signature in database
GPG key ID: 25E1490B761470C2
2 changed files with 4 additions and 3 deletions

View file

@ -340,8 +340,6 @@ async function init() {
dom.cl.toggle('#gotoUnpicker', 'enabled', popupPanelData.hasCustomFilters);
dom.cl.remove(dom.body, 'loading');
return true;
}
@ -350,6 +348,8 @@ async function tryInit() {
await init();
} catch {
setTimeout(tryInit, 100);
} finally {
dom.cl.remove(dom.body, 'loading');
}
}

View file

@ -242,9 +242,10 @@ sendMessage({
renderAdminRules();
renderFilterLists(cachedRulesetData);
renderWidgets();
dom.cl.remove(dom.body, 'loading');
} catch(reason) {
console.error(reason);
} finally {
dom.cl.remove(dom.body, 'loading');
}
listen();
}).catch(reason => {