From 8c840539eb5a67b9c48a9ab07d40e424d1aacff8 Mon Sep 17 00:00:00 2001 From: Michael Kauzmann Date: Mon, 18 Dec 2023 15:21:26 -0700 Subject: [PATCH] initial global variables before setting, https://github.com/phetsims/chipper/issues/1413 --- templates/chipper-initialization.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/templates/chipper-initialization.js b/templates/chipper-initialization.js index 105f088ad..ce550a61f 100644 --- a/templates/chipper-initialization.js +++ b/templates/chipper-initialization.js @@ -1,3 +1,5 @@ +window.phet = window.phet|| {}; +window.phet.chipper = window.phet.chipper || {}; window.phet.chipper.project = '{{PHET_PROJECT}}'; window.phet.chipper.version = '{{PHET_VERSION}}';