Add fix to work better (i.e. not necessarily fully) with Home Assistant Cast
This commit is contained in:
		
							parent
							
								
									0efed83c3f
								
							
						
					
					
						commit
						bff8a650bc
					
				| @ -19,7 +19,9 @@ class { | ||||
|   } | ||||
| 
 | ||||
|   static get LitElement() { | ||||
|     if(customElements.get('home-assistant-main')) | ||||
|       return Object.getPrototypeOf(customElements.get('home-assistant-main')); | ||||
|     return Object.getPrototypeOf(customElements.get('hui-view')); | ||||
|   } | ||||
|   static litElement() { // Backwards compatibility - deprecated
 | ||||
|     this.deprecationWarning(); | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user