Skip to content

Commit

Permalink
prefer Utils.toFixed when possible, phetsims/chipper#737
Browse files Browse the repository at this point in the history
  • Loading branch information
zepumph committed Mar 26, 2021
1 parent c32bdb4 commit 6a6726c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/splash.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@
const phetSplashScreenAnimationInterval = setInterval( () => { // eslint-disable-line bad-sim-text

// use browser toFixed because this is a preload
progressBarBackground.style[ 'stroke-width' ] = ( Math.sin( Date.now() / 1000 * 4 ) * 0.55 + 1 ).toFixed( 2 );
progressBarBackground.style[ 'stroke-width' ] = ( Math.sin( Date.now() / 1000 * 4 ) * 0.55 + 1 ).toFixed( 2 ); // eslint-disable-line bad-sim-text
}, 16 );

// After download is complete, stop the animation of the background
Expand Down

0 comments on commit 6a6726c

Please sign in to comment.