Refactor fireworks.js: clean up observer options for improved readability

This commit is contained in:
CodeDevMLH
2026-02-24 19:20:02 +01:00
parent 5b98b442e5
commit 5c0d8af5d8

View File

@@ -60,9 +60,9 @@ const observer = new MutationObserver(toggleFirework);
// start observation // start observation
observer.observe(document.body, { observer.observe(document.body, {
childList: true, // observe adding/removing of child elements childList: true,
subtree: true, // observe all levels of the DOM tree subtree: true,
attributes: true // observe changes to attributes (e.g. class changes) attributes: true
}); });