js/theme-switcher: fix for wide admin pages
This commit is contained in:
parent
56dc48a2b8
commit
3b51620527
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user