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 5ba0d8b commit fae380e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/Bugsnag.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@ export class Client {
*/
handleUncaughtErrors = () => {
if (ErrorUtils) {
const previousHandler = ErrorUtils._globalHandler
|| require('react-native/Libraries/Core/ExceptionsManager').handleException;
const previousHandler = ErrorUtils.getGlobalHandler();

ErrorUtils.setGlobalHandler((error, isFatal) => {
if (this.config.autoNotify) {
Expand Down

0 comments on commit fae380e

Please sign in to comment.