File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -72,11 +72,11 @@ module.exports = {
7272 try {
7373 // When the iframe is not loaded, IE raises an exception
7474 // on 'contentWindow'.
75- if ( iframe && iframe . contentWindow ) {
76- setTimeout ( function ( ) {
75+ setTimeout ( function ( ) {
76+ if ( iframe && iframe . contentWindow ) {
7777 iframe . contentWindow . postMessage ( msg , origin ) ;
78- } , 0 ) ;
79- }
78+ }
79+ } , 0 ) ;
8080 } catch ( x ) { }
8181 } ;
8282
@@ -138,11 +138,11 @@ module.exports = {
138138 try {
139139 // When the iframe is not loaded, IE raises an exception
140140 // on 'contentWindow'.
141- if ( iframe && iframe . contentWindow ) {
142- setTimeout ( function ( ) {
143- iframe . contentWindow . postMessage ( msg , origin ) ;
144- } , 0 ) ;
145- }
141+ setTimeout ( function ( ) {
142+ if ( iframe && iframe . contentWindow ) {
143+ iframe . contentWindow . postMessage ( msg , origin ) ;
144+ }
145+ } , 0 ) ;
146146 } catch ( x ) { }
147147 } ;
148148
You can’t perform that action at this time.
0 commit comments