mirror of
https://github.com/jquery/jquery.git
synced 2026-04-20 03:01:22 -04:00
Avoid potential for breakage if test suite is run in a frame
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
var payload = {
|
||||
event: event.type
|
||||
};
|
||||
return top.postMessage( JSON.stringify(payload), "*" );
|
||||
return parent.postMessage( JSON.stringify(payload), "*" );
|
||||
}
|
||||
|
||||
jQuery( window ).on( "beforeunload", function( event ) {
|
||||
|
||||
Reference in New Issue
Block a user