diff --git a/src/sim-screen/SimScreen.ts b/src/sim-screen/SimScreen.ts index d2083bb..a1dfb85 100644 --- a/src/sim-screen/SimScreen.ts +++ b/src/sim-screen/SimScreen.ts @@ -8,6 +8,7 @@ * For multi-screen simulations, duplicate this file (e.g. IntroScreen.ts, * LabScreen.ts) and add each screen to the screens array in src/main.ts. */ +import { type EmptySelfOptions, optionize } from "scenerystack/phet-core"; import type { ScreenOptions } from "scenerystack/sim"; import { Screen } from "scenerystack/sim"; import type { Tandem } from "scenerystack/tandem"; @@ -29,11 +30,13 @@ export class SimScreen extends Screen { new SimScreenView(model, { tandem: options.tandem.createTandem("view"), }), - { - backgroundColorProperty: SimColors.backgroundColorProperty, - createKeyboardHelpNode: () => new SimKeyboardHelpContent(), - ...options, - }, + optionize()( + { + backgroundColorProperty: SimColors.backgroundColorProperty, + createKeyboardHelpNode: () => new SimKeyboardHelpContent(), + }, + options, + ), ); } }