mirror of
https://github.com/Terncode/pixel.horse.git
synced 2026-09-24 21:55:52 +02:00
Fix prod builder
This commit is contained in:
@@ -42,12 +42,11 @@ export function rollbarFactory() {
|
||||
}
|
||||
|
||||
@Injectable()
|
||||
export class RollbarErrorHandler extends ErrorHandler {
|
||||
constructor(private injector: Injector) {
|
||||
super();
|
||||
}
|
||||
export class RollbarErrorHandler implements ErrorHandler {
|
||||
private errorHandler = new ErrorHandler();
|
||||
constructor(private injector: Injector) {}
|
||||
handleError(error: any) {
|
||||
super.handleError(error);
|
||||
this.errorHandler.handleError(error);
|
||||
|
||||
if (!DEVELOPMENT && rollbarConfig.accessToken) {
|
||||
const rollbar = this.injector.get(RollbarService);
|
||||
@@ -58,4 +57,4 @@ export class RollbarErrorHandler extends ErrorHandler {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user