do not ping api when document is hidden
This commit is contained in:
parent
2aa8cdbaa0
commit
83a1c09af7
@ -38,6 +38,7 @@ return await fetch('/ping', {
|
||||
}
|
||||
|
||||
let pingCheck = async function(){
|
||||
if (document.hidden){return}
|
||||
result = await doPing()
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user