Add fullykiosk browser special cases

This commit is contained in:
2022-07-15 19:49:38 +00:00
parent a46d2b3cb0
commit 11d75426fb
8 changed files with 505 additions and 248 deletions

View File

@@ -12,6 +12,8 @@ export const BrowserStateMixin = (SuperClass) => {
this._browser_state_update()
);
this.addEventListener("fully-update", () => this._browser_state_update());
this.connectionPromise.then(() => this._browser_state_update());
}
@@ -24,7 +26,7 @@ export const BrowserStateMixin = (SuperClass) => {
visibility: document.visibilityState,
userAgent: navigator.userAgent,
currentUser: this.hass?.user?.name,
fullyKiosk: this.isFully || false,
fullyKiosk: this.fully || false,
width: window.innerWidth,
height: window.innerHeight,
battery_level: