mirror of
https://github.com/pi-hole/web.git
synced 2025-12-24 12:48:29 +00:00
xo does neither like const nor let. Use var everywhere.
Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
@@ -103,10 +103,11 @@ $(document).ready(function() {
|
||||
|
||||
var ips = [];
|
||||
var maxiter = Math.min(data.ip.length, MAXIPDISPLAY);
|
||||
for (let index = 0; index < maxiter; index++) {
|
||||
for (var index = 0; index < maxiter; index++) {
|
||||
var ip = data.ip[index];
|
||||
ips.push('<a href="queries.php?client=' + ip + '">' + ip + '</a>');
|
||||
ips.push('<a href="queries.php?client=' + ip + '">' + ip + "</a>");
|
||||
}
|
||||
|
||||
if (data.ip.length > MAXIPDISPLAY) {
|
||||
// We hit the maximum above, add "..." to symbolize we would
|
||||
// have more to show here
|
||||
|
||||
Reference in New Issue
Block a user