mirror of
https://github.com/speatzle/nfsense.git
synced 2025-05-11 02:48:21 +00:00
only keep session alive if page is not hidden
This commit is contained in:
parent
f9b3a358dd
commit
af292fdb80
1 changed files with 1 additions and 1 deletions
|
@ -63,7 +63,7 @@ onMounted(async() => {
|
|||
setup(UnauthorizedCallback);
|
||||
await checkAuth();
|
||||
setInterval(function () {
|
||||
if (authState === AuthState.Authenticated) {
|
||||
if (authState === AuthState.Authenticated && !document.hidden) {
|
||||
checkAuth();
|
||||
}
|
||||
}.bind(this), 120000);
|
||||
|
|
Loading…
Add table
Reference in a new issue