Skip to content

Commit

Permalink
Avoid reporting null NonError (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
PG Herveou authored and sindresorhus committed Jan 6, 2020
1 parent 028d28f commit fc0585d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ module.exports = inputOptions => {
}, 200);
window.addEventListener('error', event => {
event.preventDefault();
errorHandler(event.error);
errorHandler(event.error || event);
});

const rejectionHandler = debounce(reason => {
Expand Down

0 comments on commit fc0585d

Please sign in to comment.