do not ping api when document is hidden
This commit is contained in:
parent
2aa8cdbaa0
commit
83a1c09af7
1 changed files with 1 additions and 0 deletions
|
@ -38,6 +38,7 @@ return await fetch('/ping', {
|
||||||
}
|
}
|
||||||
|
|
||||||
let pingCheck = async function(){
|
let pingCheck = async function(){
|
||||||
|
if (document.hidden){return}
|
||||||
result = await doPing()
|
result = await doPing()
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue