Skip to content
This repository was archived by the owner on Feb 22, 2024. It is now read-only.

Commit 73dd558

Browse files
committed
Reload when newValue !== oldValue
1 parent e112fb8 commit 73dd558

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/botPage/view/View.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -650,7 +650,7 @@ export default class View {
650650

651651
window.addEventListener('storage', e => {
652652
window.onbeforeunload = null;
653-
if (e.key === 'activeToken' && !e.newValue) window.location.reload();
653+
if (e.key === 'activeToken' && e.newValue !== e.oldValue) window.location.reload();
654654
if (e.key === 'realityCheckTime') hideRealityCheck();
655655
});
656656

0 commit comments

Comments
 (0)