webrecorder / wombat

Wombat.js client-side rewriting library
GNU Affero General Public License v3.0
81 stars 31 forks source link

override: add IntersectionObserver(callback, options) constructor override #137

Closed ikreymer closed 4 months ago

ikreymer commented 4 months ago

IntersectionObserver(callback, options) has an options.root field which may be a document, and must be de-proxied.

This PR adds an initIntersectionObsOverride override which overrides the IntersectionObserver class with a derived class that wraps the original and deproxies options.root.

Fixes #136