@@ -8,7 +8,6 @@ var Panel_Holder;
8
8
var Hui ;
9
9
var Lovelace ;
10
10
var Animated_Config ;
11
- var View_Layout ;
12
11
var Haobj = null ;
13
12
var View ;
14
13
var Debug_Mode = false ;
@@ -56,7 +55,7 @@ function getVars() {
56
55
Root = Root && Root . shadowRoot ;
57
56
Root = Root && Root . querySelector ( "home-assistant-main" ) ;
58
57
Root = Root && Root . shadowRoot ;
59
- Root = Root && Root . querySelector ( "app-drawer-layout partial-panel-resolver" ) ;
58
+ Root = Root && Root . querySelector ( "app-drawer-layout partial-panel-resolver, ha-drawer partial-panel-resolver " ) ;
60
59
Root = ( Root && Root . shadowRoot ) || Root ;
61
60
Root = Root && Root . querySelector ( "ha-panel-lovelace" ) ;
62
61
if ( Root ) {
@@ -70,7 +69,6 @@ function getVars() {
70
69
if ( Lovelace ) {
71
70
Animated_Config = Lovelace . config . animated_background ;
72
71
}
73
- View_Layout = Root . shadowRoot . getElementById ( "layout" ) ;
74
72
View = Root . shadowRoot . getElementById ( "view" ) ;
75
73
}
76
74
}
@@ -535,15 +533,13 @@ function removeDefaultBackground(node, current_config) {
535
533
if ( current_config . background ) {
536
534
background = current_config . background ;
537
535
}
538
- if ( node . style . background != background || View_Layout . style . background != 'transparent' ) {
536
+ if ( node . style . background != background ) {
539
537
node . style . background = background ;
540
- View_Layout . style . background = 'transparent' ;
541
538
}
542
539
}
543
540
544
541
//restores lovelace theme background
545
542
function restoreDefaultBackground ( node ) {
546
- View_Layout . style . background = null ;
547
543
node . style . background = null ;
548
544
}
549
545
0 commit comments