From 73dd558ca7da382e2c2848282e54f629dcf92873 Mon Sep 17 00:00:00 2001 From: Aaron Imming Date: Mon, 4 May 2020 12:32:21 +0800 Subject: [PATCH] Reload when newValue !== oldValue --- src/botPage/view/View.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/botPage/view/View.js b/src/botPage/view/View.js index 1dcceaf0f8..7a0d61e850 100644 --- a/src/botPage/view/View.js +++ b/src/botPage/view/View.js @@ -650,7 +650,7 @@ export default class View { window.addEventListener('storage', e => { window.onbeforeunload = null; - if (e.key === 'activeToken' && !e.newValue) window.location.reload(); + if (e.key === 'activeToken' && e.newValue !== e.oldValue) window.location.reload(); if (e.key === 'realityCheckTime') hideRealityCheck(); }); pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy