File tree 2 files changed +12
-3
lines changed
2 files changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -16,11 +16,15 @@ export default class CheckSessionIFrame {
16
16
this . _frame_origin = url . substr ( 0 , idx ) ;
17
17
18
18
this . _frame = window . document . createElement ( "iframe" ) ;
19
- //this._frame.style.display = "none";
19
+
20
+ // shotgun approach
20
21
this . _frame . style . visibility = "hidden" ;
21
22
this . _frame . style . position = "absolute" ;
22
- this . _frame . src = url ;
23
+ this . _frame . style . display = "none" ;
24
+ this . _frame . style . width = 0 ;
25
+ this . _frame . style . height = 0 ;
23
26
27
+ this . _frame . src = url ;
24
28
}
25
29
load ( ) {
26
30
return new Promise ( ( resolve ) => {
Original file line number Diff line number Diff line change @@ -19,9 +19,14 @@ export default class IFrameWindow {
19
19
window . addEventListener ( "message" , this . _boundMessageEvent , false ) ;
20
20
21
21
this . _frame = window . document . createElement ( "iframe" ) ;
22
- //this._frame.style.display = "none";
22
+
23
+ // shotgun approach
23
24
this . _frame . style . visibility = "hidden" ;
24
25
this . _frame . style . position = "absolute" ;
26
+ this . _frame . style . display = "none" ;
27
+ this . _frame . style . width = 0 ;
28
+ this . _frame . style . height = 0 ;
29
+
25
30
window . document . body . appendChild ( this . _frame ) ;
26
31
}
27
32
You can’t perform that action at this time.
0 commit comments