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;
|
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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user