diff --git a/snowflakes.js b/snowflakes.js index 7acdc77..f1a77d4 100644 --- a/snowflakes.js +++ b/snowflakes.js @@ -76,8 +76,8 @@ function addRandomSnowflakes(count) { // initialize snowflakes and add random snowflakes after the DOM is loaded document.addEventListener('DOMContentLoaded', () => { toggleSnowflakes(); - const screenWidth = window.innerWidth; + const screenWidth = window.innerWidth; // get the screen width to detect mobile devices if (randomSnowflakes && screenWidth > 768) { // add random snowflakes only on larger screens addRandomSnowflakes(snowflakeCount); }