Changeset 24384
- Timestamp:
- 05/30/2013 12:08:53 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/js/heartbeat.js
r24268 r24384 66 66 } 67 67 68 function isLocalFrame(frame) { 68 function isLocalFrame( frame ) { 69 var origin, src = frame.src; 70 71 if ( src && /^https?:\/\//.test( src ) ) { 72 origin = window.location.origin ? window.location.origin : window.location.protocol + '//' + window.location.host; 73 74 if ( src.indexOf( origin ) !== 0 ) 75 return false; 76 } 77 69 78 try { 70 79 if ( frame.contentWindow.document ) … … 151 160 dataType: 'json' 152 161 }).done( function( response, textStatus, jqXHR ) { 153 var new_interval , timed;162 var new_interval; 154 163 155 164 if ( ! response )
Note: See TracChangeset
for help on using the changeset viewer.