From ffc628ae4c05bb1fca3c41e916976047e7efb6d4 Mon Sep 17 00:00:00 2001 From: rdwebdesign Date: Fri, 12 Nov 2021 02:06:02 -0300 Subject: [PATCH] Fix prettier complains Signed-off-by: rdwebdesign --- scripts/pi-hole/js/db_graph.js | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/scripts/pi-hole/js/db_graph.js b/scripts/pi-hole/js/db_graph.js index 4d224aac..4c0a3edd 100644 --- a/scripts/pi-hole/js/db_graph.js +++ b/scripts/pi-hole/js/db_graph.js @@ -17,12 +17,9 @@ var dateformat = "MMMM Do YYYY, HH:mm"; // get the database min timestamp var mintimestamp; -$.getJSON( - "http://192.168.0.201/admin/api_db.php?getMinTimestamp=true", - function (ts) { - mintimestamp = ((ts.mintimestamp) * 1000) || 0; // return the number times 1000 or zero (in case of NaN) - } -); +$.getJSON("api_db.php?getMinTimestamp", function (ts) { + mintimestamp = ((ts.mintimestamp) * 1000) || 0; // return the timestamp in milliseconds or zero (in case of NaN) +}); $(function () { $("#querytime").daterangepicker(