diff --git a/public/js/admin.js b/public/js/admin.js index 7b60e69..2c0382f 100644 --- a/public/js/admin.js +++ b/public/js/admin.js @@ -27,7 +27,7 @@ function loadAdmin() { loadSettings(); loadUsers(); - loadOidcConfig(); + // loadOidcConfig() is registered in the CMS IIFE below — it's not in scope here } // ---- SETTINGS + STATS ---- @@ -270,7 +270,7 @@ // Load CMS when admin tab is opened (via tabChanged event or click) document.addEventListener('tabChanged', function(e) { if (e.detail && e.detail.tab === 'admin') { - if (!cmsLoaded) { loadCms(); cmsLoaded = true; } + if (!cmsLoaded) { loadCms(); loadOidcConfig(); cmsLoaded = true; } } });