Detect changes to the DOM.
Source Code
const observer = new MutationObserver(mutations => {
mutations.forEach(mutation => console.log(mutation));
});
observer.observe(document.body, { childList: true, subtree: true });
Detect changes to the DOM.
const observer = new MutationObserver(mutations => {
mutations.forEach(mutation => console.log(mutation));
});
observer.observe(document.body, { childList: true, subtree: true });