From ef34d3cf0246b194dfcfe96dde555b3f879c9e63 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Tue, 13 Jan 2026 13:36:49 +0000 Subject: [PATCH] Optimize startup by non-blocking moderation and relay init --- js/app.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/js/app.js b/js/app.js index ca889f5a..acc7d99a 100644 --- a/js/app.js +++ b/js/app.js @@ -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");