Skip to content

Commit

Permalink
Update MutationObserver (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
smashedr authored Dec 11, 2023
1 parent 06836c9 commit 711cfa7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/js/tab.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@
const observer = new MutationObserver(function () {
updateLinks()
})
observer.observe(document.body, { subTree: true, attributes: true })
observer.observe(document.body, {
attributes: true,
childList: true,
subTree: true,
})
}
})()

Expand Down

0 comments on commit 711cfa7

Please sign in to comment.