footer: remove document.hidden in checkBlocking (#3518)

This is taken care of in utils.setTimer.

Fixes status not showing when opening a new tab. Previously, it was shown after the timer fired.

Signed-off-by: XhmikosR <xhmikosr@gmail.com>
This commit is contained in:
XhmikosR
2025-06-19 18:03:00 +03:00
committed by GitHub
parent 64b4756640
commit aaa692dc83

View File

@@ -109,12 +109,6 @@ function countDown() {
}
function checkBlocking() {
// Skip if page is hidden
if (document.hidden) {
utils.setTimer(checkBlocking, REFRESH_INTERVAL.blocking);
return;
}
$.ajax({
url: document.body.dataset.apiurl + "/dns/blocking",
method: "GET",