ProjectSidewalk / SidewalkWebpage

Project Sidewalk web page
http://projectsidewalk.org
MIT License
84 stars 25 forks source link

Swap deprecated 'DOMNodeInserted' with Mutation Observer #3617

Closed jsomeara closed 3 months ago

jsomeara commented 3 months ago

Resolves #3616

I swapped the deprecated 'DOMNodeInserted' with a Mutation Observer instead, eliminating the error.

Before/After screenshots (if applicable)

Before image After image

Testing instructions
  1. Go to the gallery page with the dev tools console open, and see that the deprecation error is gone.
  2. You can also add console.log statements before the event listeners are added to see that the mutation observer is properly firing.
Things to check before submitting the PR