diff --git a/client/app/src/app.module.ts b/client/app/src/app.module.ts index 5dfc2fceeb..bf59d66f28 100644 --- a/client/app/src/app.module.ts +++ b/client/app/src/app.module.ts @@ -43,6 +43,7 @@ import {TranslationService} from "@app/services/helper/translation.service"; import {NgbDatepickerI18n} from '@ng-bootstrap/ng-bootstrap'; import {CustomDatepickerI18n} from '@app/shared/services/custom-datepicker-i18n'; import {registerLocales} from '@app/services/helper/locale-provider'; +import {AppDataService} from "@app/app-data.service"; // Register all the locales registerLocales(); @@ -139,8 +140,9 @@ const translationModule = TranslateModule.forRoot({ }) export class AppModule implements OnDestroy { - constructor(private cryptoService:CryptoService, private authenticationService: AuthenticationService, private idle: Idle, private keepalive: Keepalive, private httpService: HttpService) { + constructor(private appDataService:AppDataService, private cryptoService:CryptoService, private authenticationService: AuthenticationService, private idle: Idle, private keepalive: Keepalive, private httpService: HttpService) { this.initIdleState(); + (window as any).scope = this.appDataService; } @HostListener("window:beforeunload")