fix typo
This commit is contained in:
@@ -105,7 +105,7 @@ document.addEventListener('DOMContentLoaded', () => {
|
|||||||
toggleSnowflakes();
|
toggleSnowflakes();
|
||||||
|
|
||||||
const screenWidth = window.innerWidth; // get the screen width to detect mobile devices
|
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);
|
addRandomSnowflakes(snowflakeCount);
|
||||||
}
|
}
|
||||||
});
|
});
|
Reference in New Issue
Block a user