Skip to content

Commit

Permalink
Whitespace and author annotation, see #764
Browse files Browse the repository at this point in the history
  • Loading branch information
samreid committed Jul 5, 2019
1 parent 74925a8 commit 0e1cf7b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion templates/chipper-startup.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@
* See https://github.com/phetsims/chipper/issues/764 for more information.
*
* The require.js part is wrapped in a phet.chipper.runRequireJS() method.
*
* @author Jonathan Olson (PhET Interactive Simulations)
*/

( function() {
'use strict';

Expand All @@ -17,6 +18,7 @@
let started = false;

function isReady() {

// NOTE: We do NOT care about window.innerWidth/innerHeight. We can start up with those equal to 0, as long as our
// SVG bounds detection works. See https://github.com/phetsims/tasks/issues/1002.
if ( !document.body ) {
Expand Down Expand Up @@ -77,6 +79,7 @@
} )();

if ( !started ) {

// Attempt to start on window resizes
window.addEventListener( 'resize', function resizeListener() {
attemptStart();
Expand Down

0 comments on commit 0e1cf7b

Please sign in to comment.