Open ojkelly opened 6 months ago
Hey @ojkelly,
Thanks for the heads up!
I'll throw away parsing errors as you've suggested. I believe I technically could verify the sending extension, but as soo many users like to build their own customised version - this is probably the best path forward.
Hey @iann0036 👋
When the react-devtools extensions is installed in Chrome is emits an event to start a connection with the react-devtools that may be embedded in an app running on the page, when you open chromes dev tools.
Ideally we would just disable the extension on all pages but the ones we need it on.
The bug may be caused by other extensions too, because the contents of
message.data
could be anything from any other extension, like the JS Object from react-devtools.A simple fix is probably just a try..catch where you ignore the exceptions. Effectively whats happening now without the app crashing.
https://github.com/iann0036/former2/blob/c3923971dc22d4aed0ab10e8ed171356e05e87df/js/app.js#L1400-L1415