mirror of
https://github.com/docsifyjs/docsify.git
synced 2026-10-17 04:31:18 +08:00
Update lifecycle.js
This commit is contained in:
@@ -42,11 +42,12 @@ export function Lifecycle(Base) {
|
||||
try {
|
||||
hookFn(data, result => {
|
||||
data = result;
|
||||
step(index + 1);
|
||||
});
|
||||
} catch (err) {
|
||||
console.error(errTitle, err);
|
||||
}
|
||||
|
||||
step(index + 1);
|
||||
} else {
|
||||
try {
|
||||
const result = hookFn(data);
|
||||
|
||||
Reference in New Issue
Block a user