Skip to content

Commit

Permalink
Remove global window.onerror handler
Browse files Browse the repository at this point in the history
  • Loading branch information
joshdover committed Sep 12, 2019
1 parent d699ec6 commit ac72923
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/core/public/fatal_errors/fatal_errors_service.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -132,10 +132,5 @@ export class FatalErrorsService {
console.log(`Detected an unhandled Promise rejection.\n${e.reason}`); // eslint-disable-line no-console
});
}

window.onerror = (err, url, line) => {
fatalErrorsSetup.add(new Error(`${err} (${url}:${line})`));
return true;
};
}
}

0 comments on commit ac72923

Please sign in to comment.