mirror of https://github.com/lissy93/dashy
⚡ Updates method of getting initial theme
This commit is contained in:
parent
168e52c251
commit
785695b7f5
|
@ -125,7 +125,7 @@ export default {
|
||||||
getInitialTheme() {
|
getInitialTheme() {
|
||||||
const localTheme = localStorage[localStorageKeys.THEME];
|
const localTheme = localStorage[localStorageKeys.THEME];
|
||||||
if (localTheme && localTheme !== 'undefined') return localTheme;
|
if (localTheme && localTheme !== 'undefined') return localTheme;
|
||||||
return this.confTheme || Defaults.theme;
|
return this.appConfig.theme || Defaults.theme;
|
||||||
},
|
},
|
||||||
/* Determines if a given theme is local / not a custom user stylesheet */
|
/* Determines if a given theme is local / not a custom user stylesheet */
|
||||||
isThemeLocal(themeToCheck) {
|
isThemeLocal(themeToCheck) {
|
||||||
|
|
Loading…
Reference in New Issue