diff --git a/client/src/App.vue b/client/src/App.vue index 26f31c4..53c4243 100644 --- a/client/src/App.vue +++ b/client/src/App.vue @@ -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);