diff --git a/scripts/pi-hole/js/auditlog.js b/scripts/pi-hole/js/auditlog.js
index 343950a3..12abb205 100644
--- a/scripts/pi-hole/js/auditlog.js
+++ b/scripts/pi-hole/js/auditlog.js
@@ -33,13 +33,12 @@ function updateTopLists() {
$("#ad-frequency td").parent().remove();
var domaintable = $("#domain-frequency").find("tbody:last");
var adtable = $("#ad-frequency").find("tbody:last");
- var url, domain, percentage;
+ var url, domain;
for (domain in data.top_queries) {
if ({}.hasOwnProperty.call(data.top_queries,domain)){
// Sanitize domain
domain = escapeHtml(domain);
url = ""+domain+"";
- percentage = data.top_queries[domain] / data.dns_queries_today * 100;
domaintable.append("
" + url +
"
" + data.top_queries[domain] + "
");
}
diff --git a/scripts/pi-hole/js/debug.js b/scripts/pi-hole/js/debug.js
index 5498f5fa..4f5daf6c 100644
--- a/scripts/pi-hole/js/debug.js
+++ b/scripts/pi-hole/js/debug.js
@@ -42,7 +42,6 @@ function eventsource() {
return;
}
- var host = window.location.host;
var source = new EventSource("scripts/pi-hole/php/debug.php?&token="+token+"&"+checked);
// Reset and show field
diff --git a/scripts/pi-hole/js/index.js b/scripts/pi-hole/js/index.js
index 013f1b8e..cc34ff35 100644
--- a/scripts/pi-hole/js/index.js
+++ b/scripts/pi-hole/js/index.js
@@ -297,7 +297,6 @@ function updateClientsOverTime() {
// Get colors from AdminLTE
var colors = [];
$.each($.AdminLTE.options.colors, function(key, value) { colors.push(value); });
- var v = [], c = [], k = [];
// Remove possibly already existing data
clientsChart.data.labels = [];
diff --git a/scripts/pi-hole/js/queries.js b/scripts/pi-hole/js/queries.js
index 2b6ca3db..69a5c84a 100644
--- a/scripts/pi-hole/js/queries.js
+++ b/scripts/pi-hole/js/queries.js
@@ -115,8 +115,6 @@ function autofilter(){
}
$(document).ready(function() {
- var status;
-
// Do we want to filter queries?
var GETDict = {};
location.search.substr(1).split("&").forEach(function(item) {GETDict[item.split("=")[0]] = item.split("=")[1];});
diff --git a/scripts/pi-hole/js/queryads.js b/scripts/pi-hole/js/queryads.js
index 583bfa12..45a408b1 100644
--- a/scripts/pi-hole/js/queryads.js
+++ b/scripts/pi-hole/js/queryads.js
@@ -78,7 +78,6 @@ function eventsource() {
return;
}
- var host = window.location.host;
var source = new EventSource("scripts/pi-hole/php/queryads.php?domain="+domain.toLowerCase()+"&"+exact);
// Reset and show field