From 6a6726c509b36a44fcac9182d53b64f3ad993df3 Mon Sep 17 00:00:00 2001 From: zepumph Date: Fri, 26 Mar 2021 11:46:32 -0800 Subject: [PATCH] prefer Utils.toFixed when possible, https://github.com/phetsims/chipper/issues/737 --- js/splash.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/splash.js b/js/splash.js index 9b55c2fc..4998d768 100644 --- a/js/splash.js +++ b/js/splash.js @@ -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