From dc5dafc658ed134621036c9176de4ffad862f893 Mon Sep 17 00:00:00 2001 From: Jonathan Olson Date: Wed, 12 May 2021 16:13:07 -0600 Subject: [PATCH] Adding homeScreen/initialScreen query parameters, see https://github.com/phetsims/joist/issues/714 --- js/initialize-globals.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/js/initialize-globals.js b/js/initialize-globals.js index d8ff41372..bdaa4c451 100644 --- a/js/initialize-globals.js +++ b/js/initialize-globals.js @@ -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