diff --git a/custom_components/browser_mod/browser_mod.js b/custom_components/browser_mod/browser_mod.js index 1ecf64e..d6f02a3 100644 --- a/custom_components/browser_mod/browser_mod.js +++ b/custom_components/browser_mod/browser_mod.js @@ -464,7 +464,7 @@ const ConnectionMixin = (SuperClass) => { return settings; } get settings() { - return Object.assign(Object.assign(Object.assign({}, this.global_settings), this.user_settings), this.browser_settings); + return Object.assign(Object.assign(Object.assign({}, this.global_settings), this.browser_settings), this.user_settings); } set_setting(key, value, level) { var _a; @@ -1869,8 +1869,8 @@ const AutoSettingsMixin = (SuperClass) => { } // Hide sidebar if (settings.hideSidebar === true) { - selectTree(document.body, "home-assistant$home-assistant-main$app-drawer-layout").then((el) => el.style.setProperty("--app-drawer-width", "0px")); - selectTree(document.body, "home-assistant$home-assistant-main$app-drawer-layout app-drawer").then((el) => el.remove()); + selectTree(document.body, "home-assistant$home-assistant-main$app-drawer-layout").then((el) => { var _a; return (_a = el === null || el === void 0 ? void 0 : el.style) === null || _a === void 0 ? void 0 : _a.setProperty("--app-drawer-width", "0px"); }); + selectTree(document.body, "home-assistant$home-assistant-main$app-drawer-layout app-drawer").then((el) => { var _a; return (_a = el === null || el === void 0 ? void 0 : el.remove) === null || _a === void 0 ? void 0 : _a.call(el); }); } // Hide header if (settings.hideHeader === true) { @@ -2014,7 +2014,7 @@ const BrowserIDMixin = (SuperClass) => { x navigate - lovelace-reload? x window-reload - - screensaver + - screensaver ? x sequence x delay x javascript eval @@ -2036,6 +2036,8 @@ const BrowserIDMixin = (SuperClass) => { - Video player? - Media_seek - Screensavers + - IMPORTANT: FIX DEFAULT HIDING OF ENTITIES + - Check functionality with CAST - may need to add frontend part as a lovelace resource */ class BrowserMod extends ServicesMixin(PopupMixin(ActivityMixin(BrowserStateMixin(CameraMixin(MediaPlayerMixin(ScreenSaverMixin(AutoSettingsMixin(FullyMixin(RequireInteractMixin(ConnectionMixin(BrowserIDMixin(EventTarget)))))))))))) { constructor() { diff --git a/custom_components/browser_mod/browser_mod_panel.js b/custom_components/browser_mod/browser_mod_panel.js index 33772c9..05fb8c9 100644 --- a/custom_components/browser_mod/browser_mod_panel.js +++ b/custom_components/browser_mod/browser_mod_panel.js @@ -158,7 +158,7 @@ class BrowserModRegisteredBrowsersCard$1 extends s {
@@ -445,10 +445,10 @@ class BrowserModFrontendSettingsCard extends s {
.activeIndex=${this._selectedTab}
@MDCTabBar:activated=${this._handleSwitchTab}
>
-
@@ -49,10 +49,10 @@ class BrowserModFrontendSettingsCard extends LitElement {
.activeIndex=${this._selectedTab}
@MDCTabBar:activated=${this._handleSwitchTab}
>
-