Skip to content

Commit

Permalink
bugfix onunhandledrejection
Browse files Browse the repository at this point in the history
  • Loading branch information
ZsharE committed Aug 1, 2024
1 parent 1856a21 commit e6d87f9
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion dist/elmahio.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/elmahio.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/elmahio.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/elmahio.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/elmahio.js
Original file line number Diff line number Diff line change
Expand Up @@ -1778,7 +1778,7 @@
window.onunhandledrejection = function (event) {
var errorLog = {
'message': event.reason && event.reason.message ? event.reason.message : undefined,
'error': event.reason.message && event.reason.stack ? event.reason : undefined
'error': event.reason && event.reason.message && event.reason.stack ? event.reason : undefined
};

setTimeout(function() { sendPayload(settings.apiKey, settings.logId, confirmResponse, errorLog); }, settings.breadcrumbs ? breadcrumbsDelay : 0);
Expand Down

0 comments on commit e6d87f9

Please sign in to comment.