javascript-errors-notifier icon indicating copy to clipboard operation
javascript-errors-notifier copied to clipboard

Fixed problem with unavailable details in a secured context.

Open neochief opened this issue 5 years ago • 0 comments

It seems that there are multiple problems arise from the fact that the extension doesn't use messaging API instead of passing events. In my case, there was a problem outlined in https://github.com/barbushin/javascript-errors-notifier/issues/92 on an error inside svg file.

It turned out, that in a mixed context environment when making "document.dispatchEvent", the resulting event won't contain the detail object. Some info about this can be located at the bottom of this page: https://developer.mozilla.org/en-US/docs/Web/API/CustomEvent

In this pull request, I improved the way the messages are being sent.

neochief avatar Aug 28 '20 10:08 neochief