From c095ce7b2579e1375c832ed2aa339dfbcb3fa255 Mon Sep 17 00:00:00 2001 From: Zenny <78681533+ZennDev1337@users.noreply.github.com> Date: Wed, 20 Mar 2024 14:41:19 +0100 Subject: [PATCH] first commit --- waitForKeyElements.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/waitForKeyElements.js b/waitForKeyElements.js index 3ab2580..6bd00dc 100644 --- a/waitForKeyElements.js +++ b/waitForKeyElements.js @@ -50,8 +50,8 @@ function waitForKeyElements( /*--- Found target node(s). Go through each and act if they are new. */ - targetNodes.forEach(function () { - let jThis = this; + targetNodes.forEach(function (tnode) { + let jThis = tnode; let alreadyFound = jThis.data("alreadyFound") || false; if (!alreadyFound) {