From b689d8ddc9c7cf6208f039dfc011b66cfb8555eb Mon Sep 17 00:00:00 2001 From: CodeDevMLH Date: Mon, 25 Nov 2024 01:48:56 +0100 Subject: [PATCH] .. --- snowflakes.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }