Skip to content

Commit

Permalink
Adding homeScreen/initialScreen query parameters, see phetsims/joist#714
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanolson committed May 12, 2021
1 parent e9ff74c commit dc5dafc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions js/initialize-globals.js
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,10 @@
if ( phet.chipper.getQueryParameter( 'locale' ) ) {
window.phet.chipper.locale = phet.chipper.getQueryParameter( 'locale' );
}

window.phet.chipper.queryParameters = window.phet.chipper.queryParameter || {};
window.phet.chipper.queryParameters.homeScreen = phet.chipper.getQueryParameter( 'homeScreen' ) !== 'false';
window.phet.chipper.queryParameters.initialScreen = phet.chipper.getQueryParameter( 'initialScreen' ) ? parseInt( phet.chipper.getQueryParameter( 'initialScreen' ), 10 ) : 0;
}());

// Create a random seed in the preload code that can be used to make sure playback simulations use the same seed
Expand Down

0 comments on commit dc5dafc

Please sign in to comment.