first commit

This commit is contained in:
Zenny 2024-03-20 14:34:22 +01:00
parent 56369fe86a
commit db0222e83a

View file

@ -31,7 +31,14 @@ function waitForKeyElements(
search.
*/
) {
let targetNodes, btargetsFound;
/**
* @typedef targetNodes
* @type {Array}
*/
/** @type {targetNodes} */
let targetNodes;
let btargetsFound;
if (typeof iframeSelector == "undefined")
targetNodes = document.querySelector(selectorTxt);
@ -43,7 +50,7 @@ function waitForKeyElements(
/*--- Found target node(s). Go through each and act if they
are new.
*/
targetNodes.each(function () {
targetNodes.forEach(function () {
let jThis = this;
let alreadyFound = jThis.data("alreadyFound") || false;