mirror of
https://github.com/Lissy93/dashy.git
synced 2025-07-27 23:54:24 +02:00
⚡ 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…
x
Reference in New Issue
Block a user