Fix #179
This commit is contained in:
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;
|
||||
|
||||
Reference in New Issue
Block a user