mirror of
https://github.com/zhigang1992/docsify.git
synced 2026-03-29 00:18:29 +08:00
fix(embed): init value
This commit is contained in:
@@ -36,7 +36,7 @@ function walkFetchEmbed ({ step = 0, embedTokens, compile, fetch }, cb) {
|
||||
}
|
||||
}
|
||||
|
||||
export function prerenderEmbed ({ compiler, raw, fetch }, done) {
|
||||
export function prerenderEmbed ({ compiler, raw = '', fetch }, done) {
|
||||
let hit
|
||||
if ((hit = cached[raw])) {
|
||||
return done(hit)
|
||||
|
||||
Reference in New Issue
Block a user