Skip to content
This repository has been archived by the owner on Sep 14, 2020. It is now read-only.

Commit

Permalink
Fix default error handling fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
foxyblocks committed Nov 14, 2016
1 parent 54c8bb3 commit d73c1d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Bugsnag.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ export class Client {
*/
handleUncaughtErrors = () => {
if (ErrorUtils) {
const previousHandler = ErrorUtils._globalHandler;
const previousHandler = ErrorUtils.getGlobalHandler();

ErrorUtils.setGlobalHandler((error, isFatal) => {
if (this.config.autoNotify) {
this.notify(error, report => {report.severity = 'error'});
Expand Down

0 comments on commit d73c1d7

Please sign in to comment.