diff options
author | Özgür Kesim <oec-taler@kesim.org> | 2023-10-10 14:14:42 +0200 |
---|---|---|
committer | Özgür Kesim <oec-taler@kesim.org> | 2023-10-10 14:14:42 +0200 |
commit | 490b813f77b3806343bbdd453d5abd29db9ea037 (patch) | |
tree | 95855651b678302cf3cf62aad480b783ca0419bf /packages/web-util | |
parent | b5f5001249122ff611f16c043e72ccb174990654 (diff) | |
parent | adda4f8ce38ce030f55855bc0d66443d08153480 (diff) |
Merge branch 'master' into age-withdraw
Diffstat (limited to 'packages/web-util')
-rw-r--r-- | packages/web-util/src/live-reload.ts | 2 |
1 files changed, 2 insertions, 0 deletions
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`); |