From bec389e5a1f21a2f390205ffd33535c380e8e929 Mon Sep 17 00:00:00 2001 From: Sam Reid Date: Fri, 2 Sep 2022 12:05:32 -0600 Subject: [PATCH] Change Sim constructor's title parameter from string to TReadOnlyProperty, and update main call sites, see https://github.com/phetsims/joist/issues/844 --- js/john-travoltage-main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/john-travoltage-main.js b/js/john-travoltage-main.js index 6e62b74..f4e652a 100644 --- a/js/john-travoltage-main.js +++ b/js/john-travoltage-main.js @@ -13,7 +13,7 @@ import Tandem from '../../tandem/js/Tandem.js'; import JohnTravoltageScreen from './john-travoltage/JohnTravoltageScreen.js'; import johnTravoltageStrings from './johnTravoltageStrings.js'; -const johnTravoltageTitleString = johnTravoltageStrings[ 'john-travoltage' ].title; +const johnTravoltageTitleStringProperty = johnTravoltageStrings[ 'john-travoltage' ].titleStringProperty; //Workaround for #30 const newChild = document.createElement( 'audio' ); @@ -43,7 +43,7 @@ const simOptions = { //Create and start the sim simLauncher.launch( () => { - new Sim( johnTravoltageTitleString, [ + new Sim( johnTravoltageTitleStringProperty, [ new JohnTravoltageScreen( tandem.createTandem( 'johnTravoltageScreen' ) ) ], simOptions ).start(); } ); \ No newline at end of file