try to change adf core autoamtion service init

This commit is contained in:
eromano
2023-07-24 16:40:10 +02:00
parent c764e11938
commit 20cfe3ed93
3 changed files with 7 additions and 4 deletions

View File

@@ -145,7 +145,6 @@ import { UserInfoComponent } from './components/app-layout/user-info/user-info.c
bootstrap: [AppComponent]
})
export class AppModule {
constructor(automationService: CoreAutomationService) {
automationService.setup();
constructor() {
}
}

View File

@@ -36,9 +36,10 @@ export class CoreAutomationService {
private userPreferencesService: UserPreferencesService,
private storageService: StorageService,
private auth: AuthenticationService
) {}
) {
// eslint-disable-next-line no-console
console.log('ADF Core AutomationService init');
setup() {
const adfProxy = window['adf'] || {};
adfProxy.getConfigField = (field: string): any => this.appConfigService.get(field);

View File

@@ -17,6 +17,9 @@
import { browser } from 'protractor';
/*
Open the CoreAutomationService in ADF core to see where we augment the window
*/
export class LocalStorageUtil {
static async getConfigField(field: string): Promise<any> {