web: fix websocket connecting double
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
parent
9e0c4e7e08
commit
784a3efaa5
|
@ -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];
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Reference in New Issue