4.6 - Track information
Introduction
How it works
const observer = new MutationObserver(function(mutations) {
mutations.forEach(function(mutation) {
if(mutation){
// this is where the eventListeners are placed
...
}
const results = document.querySelector('.search-results')
const projectPage = document.querySelector('.project-page')
observer.observe(results, {
childList: true,
attributes: true,
characterData: true,
})
observer.observe(projectPage, {
childList: true,
attributes: true,
characterData: true,
})
})Last updated

