Jelajahi Sumber

Changed function called on setTimeout

Henry Whitaker 6 tahun lalu
induk
melakukan
7fe551b6c5
1 mengubah file dengan 2 tambahan dan 2 penghapusan
  1. 2 2
      js/functions.js

+ 2 - 2
js/functions.js

@@ -6808,9 +6808,9 @@ function homepageMonitorr(timeout){
     }).fail(function(xhr) {
     }).fail(function(xhr) {
         console.error("Organizr Function: API Connection Failed");
         console.error("Organizr Function: API Connection Failed");
     });
     });
-    var timeoutTitle = 'PiHole-Homepage';
+    var timeoutTitle = 'Monitorr-Homepage';
     if(typeof timeouts[timeoutTitle] !== 'undefined'){ clearTimeout(timeouts[timeoutTitle]); }
     if(typeof timeouts[timeoutTitle] !== 'undefined'){ clearTimeout(timeouts[timeoutTitle]); }
-    timeouts[timeoutTitle] = setTimeout(function(){ homepagePihole(timeout); }, timeout);
+    timeouts[timeoutTitle] = setTimeout(function(){ homepageMonitorr(timeout); }, timeout);
 }
 }
 // Thanks Swifty!
 // Thanks Swifty!
 function PopupCenter(url, title, w, h) {
 function PopupCenter(url, title, w, h) {