Skip to content

Commit

Permalink
change window comparison for phetsims/tasks#958
Browse files Browse the repository at this point in the history
  • Loading branch information
jessegreenberg authored and zepumph committed Feb 3, 2022
1 parent c0d9ae7 commit 4be5d2e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/pageload-connector.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
if ( data && data.error && data.error.stack ) {
stack = data.error.stack;
}
( window.parent !== window.top ) && window.parent.postMessage( JSON.stringify( {
( window.parent !== window ) && window.parent.postMessage( JSON.stringify( {
type: 'pageload-error',
url: window.location.href,
message: message,
Expand All @@ -35,7 +35,7 @@
// Wait 4 seconds before reporting load, to see if it errors first
setTimeout( function() {
if ( !hasErrored ) {
( window.parent !== window.top ) && window.parent.postMessage( JSON.stringify( {
( window.parent !== window ) && window.parent.postMessage( JSON.stringify( {
type: 'pageload-load',
url: window.location.href
} ), '*' );
Expand Down

0 comments on commit 4be5d2e

Please sign in to comment.