Hi all,
Recently I've noticed a bug in my chrome extension that only occurs on modern web apps that are using React or NextJS (or others of that nature). Essentially, I have a chrome extension that makes modifications to the DOM once the page has loaded. Initially on load, the modifications happen on these modern apps, but if I navigate to another page on that site, the modifications don't happen. This is because in these modern apps, the page never actually reloads, but rather updates the content for a better UX. My question is if anyone knows of an event listener that I can add to my service worker that will fire when one of these updates happens, so I can tell my extension to behave like it would on a page load.
Please let me know if any more clarification is needed. Any help is appreciated!
Best,
Graham