chore(error): update ionic error handler

This commit is contained in:
Adam Bradley
2017-03-31 21:45:20 -05:00
parent 44f36c4509
commit 74f90e6d57

View File

@ -50,10 +50,14 @@ export class IonicErrorHandler extends ErrorHandler {
handleError(err: any): void {
super.handleError(err);
try {
const devServer = (<any>window)['IonicDevServer'];
if (devServer) {
devServer.handleError(err);
}
const win: any = window;
let monitor: any;
monitor = win['IonicDevServer'];
monitor && monitor.handleError && monitor.handleError(err);
monitor = (win['Ionic'] = win['Ionic'] || {}).Monitor;
monitor && monitor.handleError && monitor.handleError(err);
} catch (e) {}
}
}