first commit
This commit is contained in:
parent
00bb89af1d
commit
56369fe86a
1 changed files with 4 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue