This commit is contained in:
Thomas Lovén 2021-02-10 00:05:38 +01:00
parent 6ce52cb3a3
commit 58f55ac18d
2 changed files with 2 additions and 2 deletions

File diff suppressed because one or more lines are too long

View File

@ -7,7 +7,7 @@ export class BrowserModConnection{
const isCast = document.querySelector("hc-main") !== null; const isCast = document.querySelector("hc-main") !== null;
if(!isCast) { if(!isCast) {
if(!window.hassConnection) { if(!window.hassConnection) {
window.setTimeout(() => this._do_connect(), 100); window.setTimeout(() => this.connect(), 100);
return; return;
} else { } else {
this._connection = (await window.hassConnection).conn; this._connection = (await window.hassConnection).conn;