clear stats interval on shutdown button, remove deprecated sync httpget

This commit is contained in:
Kevin Froman 2020-08-23 05:17:15 -05:00
parent 02fde0ad70
commit b66e1d852e
3 changed files with 10 additions and 14 deletions

View file

@ -25,6 +25,8 @@ totalRec = document.getElementById('totalRec')
securityLevel = document.getElementById('securityLevel')
sec_description_str = 'unknown'
statsInterval = null
function showSecStatNotice(){
var secWarnEls = document.getElementsByClassName('secRequestNotice')
for (el = 0; el < secWarnEls.length; el++){
@ -143,7 +145,7 @@ document.addEventListener("visibilitychange", function() {
})
getStats()
setInterval(function(){getStats()}, 1000)
statsInterval = setInterval(function(){getStats()}, 1000)