diff options
Diffstat (limited to 'polygerrit-ui/app/elements/plugins/gr-attribute-helper/gr-attribute-helper.ts')
-rw-r--r-- | polygerrit-ui/app/elements/plugins/gr-attribute-helper/gr-attribute-helper.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/polygerrit-ui/app/elements/plugins/gr-attribute-helper/gr-attribute-helper.ts b/polygerrit-ui/app/elements/plugins/gr-attribute-helper/gr-attribute-helper.ts index c3d9e4d051..06549140f9 100644 --- a/polygerrit-ui/app/elements/plugins/gr-attribute-helper/gr-attribute-helper.ts +++ b/polygerrit-ui/app/elements/plugins/gr-attribute-helper/gr-attribute-helper.ts @@ -16,13 +16,13 @@ */ import {AttributeHelperPluginApi} from '../../../api/attribute-helper'; import {PluginApi} from '../../../api/plugin'; -import {appContext} from '../../../services/app-context'; +import {getAppContext} from '../../../services/app-context'; export class GrAttributeHelper implements AttributeHelperPluginApi { // eslint-disable-next-line @typescript-eslint/no-explicit-any private readonly _promises = new Map<string, Promise<any>>(); - private readonly reporting = appContext.reportingService; + private readonly reporting = getAppContext().reportingService; // TODO(TS): Change any to something more like HTMLElement. // eslint-disable-next-line @typescript-eslint/no-explicit-any |