Commit 26575afe authored by Troy A. Griffitts's avatar Troy A. Griffitts

fixed bug where app theme was set too late in app initialization

parent 40e1ee67
......@@ -666,6 +666,7 @@ console.log('storage app theme: ' + ath);
console.log('setting default app theme: ' + app.defaultTheme);
window.localStorage.setItem('appTheme', app.defaultTheme);
}
app.setAppTheme();
if (!window.localStorage.getItem('appLocale') && !app.checkDefaultLocale) {
window.localStorage.setItem('appLocale', app.defaultLocale);
}
......@@ -2240,6 +2241,7 @@ console.log('refreshing sources complete');
},
setAppTheme: function(appTheme) {
console.log('setting app theme: ' + appTheme);
if (!appTheme) appTheme = window.localStorage.getItem('appTheme');
$('#appStyle').attr('href', 'css/'+appTheme);
window.localStorage.setItem('appTheme', appTheme);
},
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment