File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -248,9 +248,14 @@ export class ScramjetClient {
248248 // we're in a subframe, recurse upward until we find one
249249 let currentwin = this . global . window ;
250250 while ( currentwin . parent !== currentwin ) {
251- if ( ! currentwin . frameElement ) return null ; // ??
252- if ( currentwin . frameElement && currentwin . frameElement [ SCRAMJETFRAME ] ) {
253- return currentwin . frameElement [ SCRAMJETFRAME ] ;
251+ let currentclient = currentwin [ SCRAMJETCLIENT ] ;
252+ let currentFrame = currentclient . descriptors . get (
253+ "window.frameElement" ,
254+ currentwin
255+ ) ;
256+ if ( ! currentFrame ) return null ; // ??
257+ if ( currentFrame && currentFrame [ SCRAMJETFRAME ] ) {
258+ return currentFrame [ SCRAMJETFRAME ] ;
254259 }
255260 currentwin = currentwin . parent . window ;
256261 }
You can’t perform that action at this time.
0 commit comments