Skip to content

Commit 7d2e12b

Browse files
authored
fix(auth): reconnect instead of reloading page on auth error (#2461)
1 parent 7fab6f6 commit 7d2e12b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ws-client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ class Api {
286286
local.remove(TOKEN_LOCAL_STORAGE_ITEM_NAME);
287287
showNotify('error', "Unauthorized", false);
288288
setTimeout(() => {
289-
window.location.reload();
289+
this.connect();
290290
}, 1000);
291291
}
292292
}

0 commit comments

Comments
 (0)