Optimize startup by non-blocking moderation and relay init

This commit is contained in:
google-labs-jules[bot] committed 2026-01-13 13:36:49 +00:00
1 parent 29857dc36c
commit ef34d3cf02
1 file changed
+15
+15
View File
@@ -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");