@@ -322,12 +322,12 @@ export function frameQuerySelectorAll(comSelector) {
322
322
async function complexSelector ( comSelector , callback ) {
323
323
let [ canvasSelector , selector ] = comSelector . split ( ';' ) ;
324
324
let canvas = document . querySelector ( canvasSelector ) ;
325
- if ( ! canvas ) {
325
+ if ( ! canvas ) {
326
326
console . warn ( 'complex selector canvas now found for' , comSelector ) ;
327
327
return ;
328
328
}
329
329
330
- if ( canvas . contentDocument . readyState === 'loading' ) {
330
+ if ( canvas . contentDocument . readyState === 'loading' ) {
331
331
try {
332
332
await new Promise ( ( resolve , reject ) => {
333
333
canvas . contentWindow . addEventListener ( 'load' , ( e ) => resolve ( ) ) ;
@@ -338,7 +338,7 @@ async function complexSelector(comSelector, callback) {
338
338
}
339
339
}
340
340
341
- if ( canvas . contentWindow . parent . CoCreate . observer && ! observerInit . has ( canvas . contentWindow ) ) {
341
+ if ( canvas . contentWindow . parent . CoCreate . observer && ! observerInit . has ( canvas . contentWindow ) ) {
342
342
observerElements ( canvas . contentWindow ) ;
343
343
}
344
344
@@ -375,12 +375,12 @@ async function complexSelector(comSelector, callback) {
375
375
let selectorArray = [ ] ;
376
376
if ( selector ) {
377
377
let selectors = [ selector ] ;
378
- if ( selector . indexOf ( ',' ) !== - 1 ) {
378
+ if ( selector . indexOf ( ',' ) !== - 1 ) {
379
379
selectors = selector . split ( ',' ) ;
380
380
}
381
381
for ( let selector of selectors ) {
382
382
let els ;
383
- if ( selector . indexOf ( ';' ) !== - 1 ) {
383
+ if ( selector . indexOf ( ';' ) !== - 1 ) {
384
384
let [ documentSelector , targetSelector ] = selector . split ( ';' ) ;
385
385
let frame = document . querySelector ( documentSelector ) ;
386
386
if ( frame )
@@ -397,12 +397,12 @@ async function complexSelector(comSelector, callback) {
397
397
398
398
if ( selector ) {
399
399
let selectors = [ selector ] ;
400
- if ( selector . indexOf ( ',' ) !== - 1 ) {
400
+ if ( selector . indexOf ( ',' ) !== - 1 ) {
401
401
selectors = selector . split ( ',' ) ;
402
402
}
403
403
for ( let selector of selectors ) {
404
404
let els ;
405
- if ( selector . indexOf ( ';' ) !== - 1 ) {
405
+ if ( selector . indexOf ( ';' ) !== - 1 ) {
406
406
let [ documentSelector , targetSelector ] = selector . split ( ';' ) ;
407
407
let frame = document . querySelector ( documentSelector ) ;
408
408
if ( frame ) {
0 commit comments