diff --git a/src/index.js b/src/index.js index 0c46fec..23c9029 100644 --- a/src/index.js +++ b/src/index.js @@ -276,7 +276,7 @@ observer.disconnect(); delete observer; }); - observer.observe(document.getElementById("app"), { childList: true }); + observer.observe(document.body, { childList: true }); } else { new Menu().init(); new Accordion().init();