mirror of
https://github.com/danbulant/koa-plugins
synced 2026-05-19 04:08:43 +00:00
Fix native plugin loading
This commit is contained in:
parent
7e68d0e4d6
commit
4dc5212eda
1 changed files with 2 additions and 1 deletions
3
hooks.js
3
hooks.js
|
|
@ -22,7 +22,8 @@ module.exports = class Hooks {
|
|||
e(this);
|
||||
} else {
|
||||
if(e.native){
|
||||
return app.use(e.exec);
|
||||
app.use(e.exec);
|
||||
continue;
|
||||
}
|
||||
if(!e.enabled || !e.exec)continue;
|
||||
this._plugins.push(e);
|
||||
|
|
|
|||
Loading…
Reference in a new issue