Skip to content

Commit

Permalink
refactor: get plugin from app directly
Browse files Browse the repository at this point in the history
  • Loading branch information
czy88840616 committed Mar 5, 2019
1 parent ccc72e0 commit 2be03ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/midway-web/src/loader/webLoader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ export class MidwayWebLoader extends EggLoader {
});

this.containerLoader.registerAllHook(MidwayHandlerKey.PLUGIN, (key) => {
return this.app[key];
return this.app[key] || this.pluginContext.get(key);
});

this.containerLoader.registerAllHook(MidwayHandlerKey.LOGGER, (key) => {
Expand Down

0 comments on commit 2be03ff

Please sign in to comment.