Update web/assets/login-events.js
Co-authored-by: Henry <111202+cryptix@users.noreply.github.com>
This commit is contained in:
parent
02a1f8ab5b
commit
5bc7b5ef0a
|
@ -23,6 +23,7 @@ evtSource.addEventListener('failed', (e) => {
|
|||
console.error(e.data);
|
||||
});
|
||||
|
||||
// prepare for the case that the success event happens while the browser is not on screen.
|
||||
let hasFocus = true;
|
||||
window.addEventListener('blur', () => {
|
||||
hasFocus = false;
|
||||
|
|
Loading…
Reference in New Issue