mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-23 09:16:38 +00:00
Use default as fallback theme for older versions
This commit is contained in:
parent
41b613a2d7
commit
3d973b112e
@ -106,9 +106,13 @@ export class HassioMain extends urlSyncMixin(ProvideHassLitMixin(LitElement)) {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
themeName = (this.hass.selectedTheme as unknown) as string;
|
themeName =
|
||||||
|
((this.hass.selectedTheme as unknown) as string) ||
|
||||||
|
this.hass.themes.default_theme;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
console.log(themeName);
|
||||||
|
|
||||||
applyThemesOnElement(
|
applyThemesOnElement(
|
||||||
this.parentElement,
|
this.parentElement,
|
||||||
this.hass.themes,
|
this.hass.themes,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user