react
react copied to clipboard
[DevTools][Draftish] Use original window methods instead of allowing overrides
Certain apps will intercept and override window methods to do things like logging. When the override functions aren't implemented correctly, however, it breaks DevTools because the DevTools backend shares the same window object as the app. This is a proof of concept implementation that called the original window methods for addEventListener
and removeEventListener
instead of the overridden one.