This commit is contained in:
MLH
2024-12-07 23:17:17 +01:00
parent 0021f210d9
commit fa0a41c755

View File

@ -105,7 +105,7 @@ document.addEventListener('DOMContentLoaded', () => {
toggleSnowflakes();
const screenWidth = window.innerWidth; // get the screen width to detect mobile devices
if (randomSnowflakes && screenWidth > 768 && randomSnowflakesMobile) { // add random snowflakes only on larger screens, unless enabled for mobile devices
if (randomSnowflakes && (screenWidth > 768 || randomSnowflakesMobile)) { // add random snowflakes only on larger screens, unless enabled for mobile devices
addRandomSnowflakes(snowflakeCount);
}
});