Skip to content

Commit

Permalink
root scope fixes for custom js
Browse files Browse the repository at this point in the history
  • Loading branch information
msmannan00 committed Oct 17, 2024
1 parent 846eb55 commit e4dcce3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion client/app/src/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -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")
Expand Down

0 comments on commit e4dcce3

Please sign in to comment.