From 4e11051d9fccdbdd40abaa630afc130eafef6602 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Tue, 10 Oct 2023 07:12:20 -0300 Subject: removing url from login --- packages/web-util/src/live-reload.ts | 2 ++ 1 file changed, 2 insertions(+) (limited to 'packages/web-util/src') diff --git a/packages/web-util/src/live-reload.ts b/packages/web-util/src/live-reload.ts index 407ef9e84..cd3a7540d 100644 --- a/packages/web-util/src/live-reload.ts +++ b/packages/web-util/src/live-reload.ts @@ -1,6 +1,8 @@ /* eslint-disable no-undef */ function setupLiveReload(): void { + const stopWs = localStorage.getItem("stop-ws") + if (!!stopWs) return; const protocol = window.location.protocol === "http:" ? "ws:" : "wss:"; const ws = new WebSocket(`${protocol}//${window.location.hostname}:${window.location.port}/ws`); -- cgit v1.2.3