From 5fe8415ee65820e761b350c088b7fdfee75260d5 Mon Sep 17 00:00:00 2001 From: sarthurdev <965089+sarthurdev@users.noreply.github.com> Date: Sun, 13 Apr 2025 10:09:06 +0200 Subject: [PATCH] fix: reconnect instead of reloading page on auth error --- src/ws-client.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ws-client.ts b/src/ws-client.ts index b56b791be..f55251289 100644 --- a/src/ws-client.ts +++ b/src/ws-client.ts @@ -286,7 +286,7 @@ class Api { local.remove(TOKEN_LOCAL_STORAGE_ITEM_NAME); showNotify('error', "Unauthorized", false); setTimeout(() => { - window.location.reload(); + this.connect(); }, 1000); } }