js/theme-switcher: fix for wide admin pages

This commit is contained in:
E. S. 2025-04-13 22:10:21 +03:00
parent 56dc48a2b8
commit 3b51620527

View File

@ -142,6 +142,11 @@ var ThemeSwitcher = (function() {
return {
init: function() {
if (!ge('switch-theme')) {
logger.local('init').warn('switch-theme element not found');
return;
}
var cur = getSavedMode();
currentModeIndex = modes.indexOf(cur);