diff --git a/projects/common/src/fm/shared/app.config.factory.ts b/projects/common/src/fm/shared/app.config.factory.ts index 845be71..e442b3d 100644 --- a/projects/common/src/fm/shared/app.config.factory.ts +++ b/projects/common/src/fm/shared/app.config.factory.ts @@ -2,10 +2,9 @@ import { OAuthService, OAuthStorage } from 'angular-oauth2-oidc'; import { ItemTypeService } from '../services/itemtype.service'; import { AppConfig } from "./app.config"; import { IAuthconfigFactory } from './authconfigFactory'; +import { Injector } from '@angular/core'; - - -export function appConfigFactory(appConfig: AppConfig, oauthService: OAuthService, authconfigFactory:IAuthconfigFactory,authStorage:OAuthStorage,itemtypeService:ItemTypeService): () => Promise { +export function appConfigFactory(injector:Injector, appConfig: AppConfig, oauthService: OAuthService, authconfigFactory:IAuthconfigFactory,authStorage:OAuthStorage,itemtypeService:ItemTypeService): () => Promise { return (): Promise => { return new Promise((resolve,reject) => { appConfig.load().then(() => {