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;
|
let targetNodes, btargetsFound;
|
||||||
|
|
||||||
if (typeof iframeSelector == "undefined") targetNodes = selectorTxt;
|
if (typeof iframeSelector == "undefined")
|
||||||
else targetNodes = iframeSelector.contents().find(selectorTxt);
|
targetNodes = document.querySelector(selectorTxt);
|
||||||
|
else
|
||||||
|
targetNodes = iframeSelector.contentDocument.querySelector(selectorTxt);
|
||||||
|
|
||||||
if (targetNodes && targetNodes.length > 0) {
|
if (targetNodes && targetNodes.length > 0) {
|
||||||
btargetsFound = true;
|
btargetsFound = true;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue