mirror of
https://github.com/pi-hole/web.git
synced 2025-12-24 20:55:28 +00:00
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:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user