mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-10-29 17:02:28 +00:00
Optimize startup by non-blocking moderation and relay init
This commit is contained in:
1 parent
29857dc36c
commit
ef34d3cf02
1 file changed
+15
@@ -602,6 +602,21 @@ class Application {
|
||||
});
|
||||
}
|
||||
|
||||
if (typeof accessControl.onWhitelistChange === "function") {
|
||||
accessControl.onWhitelistChange(() => {
|
||||
const refreshReason = "admin-whitelist-change";
|
||||
this.refreshAllVideoGrids({
|
||||
reason: refreshReason,
|
||||
forceMainReload: true,
|
||||
}).catch((error) => {
|
||||
devLogger.warn(
|
||||
"[app.init()] Failed to refresh video grids after admin whitelist change:",
|
||||
error,
|
||||
);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
// Grab the "Subscriptions" link by its id in the sidebar
|
||||
this.subscriptionsLink = document.getElementById("subscriptionsLink");
|
||||
|
||||
|
||||
Reference in new issue
Block a user