Skip to content

Commit

Permalink
Merge pull request #433 from Codex-/bugfix/fetch_unhandled_rejection
Browse files Browse the repository at this point in the history
(Bugfix) Resolve issue where calling originalFetch can throw an unhandled rejection.
  • Loading branch information
darcythomas authored Dec 8, 2021
2 parents 562923b + 1247c54 commit 496df0b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/raygun.network-tracking.js
Original file line number Diff line number Diff line change
Expand Up @@ -217,9 +217,7 @@ window.raygunNetworkTrackingFactory = function(window, Raygun) {
executeHandlers();
}
})
);

promise.catch(
).catch(
self.wrapWithHandler(function(error) {
self.executeHandlers(self.errorHandlers, {
metadata: {
Expand Down

0 comments on commit 496df0b

Please sign in to comment.