first commit

This commit is contained in:
Zenny 2024-03-20 14:28:44 +01:00
parent 00bb89af1d
commit 56369fe86a

View file

@ -33,8 +33,10 @@ function waitForKeyElements(
) {
let targetNodes, btargetsFound;
if (typeof iframeSelector == "undefined") targetNodes = selectorTxt;
else targetNodes = iframeSelector.contents().find(selectorTxt);
if (typeof iframeSelector == "undefined")
targetNodes = document.querySelector(selectorTxt);
else
targetNodes = iframeSelector.contentDocument.querySelector(selectorTxt);
if (targetNodes && targetNodes.length > 0) {
btargetsFound = true;