mirror of
https://github.com/speatzle/nfsense.git
synced 2025-05-11 19:08:20 +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);
|
setup(UnauthorizedCallback);
|
||||||
await checkAuth();
|
await checkAuth();
|
||||||
setInterval(function () {
|
setInterval(function () {
|
||||||
if (authState === AuthState.Authenticated) {
|
if (authState === AuthState.Authenticated && !document.hidden) {
|
||||||
checkAuth();
|
checkAuth();
|
||||||
}
|
}
|
||||||
}.bind(this), 120000);
|
}.bind(this), 120000);
|
||||||
|
|
Loading…
Add table
Reference in a new issue