mirror of
https://github.com/gorhill/uBlock.git
synced 2026-03-11 09:04:36 +00:00
[mv3] Ensure ui is visible even after failure
This commit is contained in:
parent
bc05f31cc2
commit
d1a29d9899
2 changed files with 4 additions and 3 deletions
|
|
@ -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');
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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 => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue