From e33cbc169dfaddcc1a6225e7a186b00fb46a7645 Mon Sep 17 00:00:00 2001 From: Chris Hofstaedtler Date: Tue, 2 Aug 2022 09:17:02 +0200 Subject: [PATCH] rec: use Array.forEach instead of jquery.each --- pdns/recursordist/html/local.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pdns/recursordist/html/local.js b/pdns/recursordist/html/local.js index 97f301d7d4..f514c4e333 100644 --- a/pdns/recursordist/html/local.js +++ b/pdns/recursordist/html/local.js @@ -95,7 +95,7 @@ function startup() { var num = 0; var total = 0, rest = 0; var rows = []; - $.each(data["entries"], function (a, b) { + data["entries"].forEach((b) => { total += b[0]; if (num++ > 10) { rest += b[0]; @@ -174,8 +174,8 @@ function startup() { connectionOK(true); var data = {}; - $.each(adata, function (key, val) { - data[val.name] = val.value; + adata.forEach((statItem) => { + data[statItem.name] = statItem.value; }); if (!gdata["sys-msec"]) -- 2.47.2