diff --git a/projects/ucap-webmessenger-app/src/app/error-handler/global.errorhandler.ts b/projects/ucap-webmessenger-app/src/app/error-handler/global.errorhandler.ts index c5da5dcc..cb8e856d 100644 --- a/projects/ucap-webmessenger-app/src/app/error-handler/global.errorhandler.ts +++ b/projects/ucap-webmessenger-app/src/app/error-handler/global.errorhandler.ts @@ -2,7 +2,9 @@ import { ErrorHandler, Injectable, Injector, NgZone } from '@angular/core'; import { NativeService, UCAP_NATIVE_SERVICE } from '@ucap-webmessenger/native'; import { error } from 'console'; -@Injectable() +@Injectable({ + providedIn: 'root' +}) export class AppGlobalErrorhandler implements ErrorHandler { constructor(private injector: Injector, private zone: NgZone) {}