getsentry / rrweb

record and replay the web
https://www.rrweb.io/
Other
12 stars 5 forks source link

fix: Protect against `matches()` being undefined #154

Closed billyvg closed 9 months ago

billyvg commented 9 months ago

try/catch to protect against cases where el.matches is not a function (not sure exact cause, but possibly el is undefined, or not an Element type)

github-actions[bot] commented 9 months ago

size-limit report 📦

Path Size
rrweb - record only (gzipped) 16.68 KB (+0.04% 🔺)
rrweb - record & CanvasManager only (gzipped) 19.22 KB (+0.04% 🔺)
rrweb - record only (min) 56.93 KB (+0.04% 🔺)
rrweb - record with treeshaking flags (gzipped) 15.46 KB (+0.04% 🔺)