Skip to content

Commit

Permalink
ConfigManager: detect app
Browse files Browse the repository at this point in the history
  • Loading branch information
Aschen committed Feb 21, 2022
1 parent 2e4b776 commit 2414439
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/config/ConfigManager.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/config/ConfigManager.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/config/ConfigManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ export class ConfigManager {
}

private get isApp () {
return this.appOrPlugin.constructor.name === 'Backend';
return this.appOrPlugin instanceof Backend;
}

constructor (appOrPlugin: Backend | Plugin, options: ConfigManagerOptions = {}) {
Expand Down

0 comments on commit 2414439

Please sign in to comment.