Refactor fireworks.js: clean up observer options for improved readability
This commit is contained in:
@@ -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
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user