File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ if (elem) {
7777 url : this . _arguments && this . _arguments [ 1 ] ,
7878 type : this . getResponseHeader ( 'Content-Type' ) ,
7979 } ;
80- iframe . contentWindow . postMessage ( `ajax-completed$$${ JSON . stringify ( params ) } ` , window . location . origin ) ;
80+ iframe . contentWindow ? .postMessage ( `ajax-completed$$${ JSON . stringify ( params ) } ` , window . location . origin ) ;
8181 }
8282 if ( original ) {
8383 return original . apply ( this , [ ] . slice . call ( arguments ) ) ;
@@ -124,7 +124,7 @@ if (elem) {
124124 url,
125125 type : response . headers . get ( 'Content-Type' ) ,
126126 } ;
127- iframe . contentWindow . postMessage ( `ajax-completed$$${ JSON . stringify ( params ) } ` , window . location . origin ) ;
127+ iframe . contentWindow ? .postMessage ( `ajax-completed$$${ JSON . stringify ( params ) } ` , window . location . origin ) ;
128128 }
129129 return response ;
130130 } catch ( error ) {
@@ -138,7 +138,7 @@ if (elem) {
138138 type : null ,
139139 error : error . message ,
140140 } ;
141- iframe . contentWindow . postMessage ( `ajax-completed$$${ JSON . stringify ( params ) } ` , window . location . origin ) ;
141+ iframe . contentWindow ? .postMessage ( `ajax-completed$$${ JSON . stringify ( params ) } ` , window . location . origin ) ;
142142 throw error ;
143143 }
144144 } ;
You can’t perform that action at this time.
0 commit comments