This commit is contained in:
Eugene Pankov
2023-02-06 10:13:12 +01:00
parent 6059de434f
commit 905a2f54d2
11 changed files with 149 additions and 123 deletions

View File

@@ -239,8 +239,7 @@ export class ConfigService {
enabledServices<T extends object> (services: T[]): T[] { // eslint-disable-line @typescript-eslint/ban-types
if (!this.servicesCache) {
this.servicesCache = {}
const ngModule = window['rootModule'].ɵinj
for (const imp of ngModule.imports) {
for (const imp of window['pluginModules']) {
const module = imp.ngModule || imp
if (module.ɵinj?.providers) {
this.servicesCache[module.pluginName] = module.ɵinj.providers.map(provider => {