fix inits

This commit is contained in:
MLH
2024-12-22 02:23:48 +01:00
parent d5c697afdf
commit 65a5753f59
9 changed files with 79 additions and 46 deletions

View File

@ -97,7 +97,10 @@ function animateSnowflake(snowflake) {
fall();
}
// initialize snowstorm after the DOM is loaded
if (!snowstorm) return; // exit if snowstorm is disabled
createSnowstorm();
// initialize snowstorm
function initializeSnowstorm() {
if (!snowstorm) return; // exit if snowstorm is disabled
createSnowstorm();
}
initializeSnowstorm();