web: fix websocket connecting double

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2021-08-11 16:53:47 +02:00
parent 9e0c4e7e08
commit 784a3efaa5
2 changed files with 0 additions and 2 deletions

View file

@ -84,7 +84,6 @@ export class FlowExecutor extends LitElement implements StageHost {
constructor() {
super();
this.ws = new WebsocketClient();
this.ws.connect();
this.flowSlug = window.location.pathname.split("/")[3];
}

View file

@ -72,7 +72,6 @@ export class AdminInterface extends LitElement {
constructor() {
super();
this.ws = new WebsocketClient();
this.ws.connect();
this.sidebarOpen = window.innerWidth >= 1280;
window.addEventListener("resize", () => {
this.sidebarOpen = window.innerWidth >= 1280;