Refactor toggleSnowfall function: clean up observer setup by removing unnecessary comments

This commit is contained in:
CodeDevMLH
2026-02-24 19:24:12 +01:00
parent b74c8ad2a1
commit 3ea0709c77

View File

@@ -47,12 +47,10 @@ function toggleSnowfall() {
// observe changes in the DOM
const observer = new MutationObserver(toggleSnowfall);
// start observation
observer.observe(document.body, {
childList: true, // observe adding/removing of child elements
subtree: true, // observe all levels of the DOM tree
attributes: true // observe changes to attributes (e.g. class changes)
childList: true,
subtree: true,
attributes: true
});
let resizeObserver; // Observer for resize events