Fix #179
This commit is contained in:
parent
6ce52cb3a3
commit
58f55ac18d
File diff suppressed because one or more lines are too long
@ -7,7 +7,7 @@ export class BrowserModConnection{
|
||||
const isCast = document.querySelector("hc-main") !== null;
|
||||
if(!isCast) {
|
||||
if(!window.hassConnection) {
|
||||
window.setTimeout(() => this._do_connect(), 100);
|
||||
window.setTimeout(() => this.connect(), 100);
|
||||
return;
|
||||
} else {
|
||||
this._connection = (await window.hassConnection).conn;
|
||||
|
Loading…
x
Reference in New Issue
Block a user