This commit is contained in:
Eugene Pankov
2020-12-27 21:03:12 +01:00
parent 10ae6ffd99
commit bc7a537c4c
13 changed files with 21 additions and 22 deletions

View File

@@ -194,10 +194,10 @@ export class ConfigService {
this.servicesCache = {}
const ngModule = window['rootModule'].ɵinj
for (const imp of ngModule.imports) {
const module = imp['ngModule'] || imp
const module = imp.ngModule || imp
if (module.ɵinj?.providers) {
this.servicesCache[module['pluginName']] = module.ɵinj.providers.map(provider => {
return provider['useClass'] || provider
this.servicesCache[module.pluginName] = module.ɵinj.providers.map(provider => {
return provider.useClass || provider
})
}
}

View File

@@ -44,7 +44,7 @@ export class ShellIntegrationService {
'extras',
'automator-workflows',
)
this.automatorWorkflowsDestination = path.join(process.env.HOME as string, 'Library', 'Services')
this.automatorWorkflowsDestination = path.join(process.env.HOME!, 'Library', 'Services')
}
this.updatePaths()
}