From 784a3efaa51f63afcf525bd016ed74ab94f3acf3 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Wed, 11 Aug 2021 16:53:47 +0200 Subject: [PATCH] web: fix websocket connecting double Signed-off-by: Jens Langhammer --- web/src/flows/FlowExecutor.ts | 1 - web/src/interfaces/AdminInterface.ts | 1 - 2 files changed, 2 deletions(-) diff --git a/web/src/flows/FlowExecutor.ts b/web/src/flows/FlowExecutor.ts index 5606ff56e..9613bf6b4 100644 --- a/web/src/flows/FlowExecutor.ts +++ b/web/src/flows/FlowExecutor.ts @@ -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]; } diff --git a/web/src/interfaces/AdminInterface.ts b/web/src/interfaces/AdminInterface.ts index 9a39939b7..a5b210ebe 100644 --- a/web/src/interfaces/AdminInterface.ts +++ b/web/src/interfaces/AdminInterface.ts @@ -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;