mirror of
https://github.com/pi-hole/web.git
synced 2024-12-06 19:36:21 +01:00
Moved definition of var domain outside of the for-in loop
This commit is contained in:
+2
-1
@@ -236,7 +236,8 @@ function escapeHtml(text) {
|
||||
function updateTopClientsChart() {
|
||||
$.getJSON("api.php?summaryRaw&getQuerySources", function(data) {
|
||||
var clienttable = $('#client-frequency').find('tbody:last');
|
||||
for (var domain in data.top_sources) {
|
||||
var domain;
|
||||
for (domain in data.top_sources) {
|
||||
// Sanitize domain
|
||||
domain = escapeHtml(domain);
|
||||
var url = "<a href=\"queries.php?client="+domain+"\">"+domain+"</a>";
|
||||
|
||||
Reference in New Issue
Block a user