mirror of
https://gitee.com/docsifyjs/docsify.git
synced 2024-12-05 05:29:12 +08:00
Fix fallback sidebar
This commit is contained in:
parent
3979f5cd3f
commit
2af035ff45
@ -79,7 +79,7 @@ const mainRender = function (cb) {
|
|||||||
const renderSidebar = result => { render.renderSidebar(result); cb() }
|
const renderSidebar = result => { render.renderSidebar(result); cb() }
|
||||||
|
|
||||||
load(basePath + OPTIONS.loadSidebar).then(renderSidebar,
|
load(basePath + OPTIONS.loadSidebar).then(renderSidebar,
|
||||||
load(OPTIONS.loadSidebar).then(renderSidebar))
|
_ => load(OPTIONS.loadSidebar).then(renderSidebar))
|
||||||
} else {
|
} else {
|
||||||
cb()
|
cb()
|
||||||
}
|
}
|
||||||
@ -88,7 +88,7 @@ const mainRender = function (cb) {
|
|||||||
// Render navbar
|
// Render navbar
|
||||||
if (OPTIONS.loadNavbar) {
|
if (OPTIONS.loadNavbar) {
|
||||||
load(basePath + OPTIONS.loadNavbar).then(render.renderNavbar,
|
load(basePath + OPTIONS.loadNavbar).then(render.renderNavbar,
|
||||||
() => load(OPTIONS.loadNavbar).then(render.renderNavbar))
|
_ => load(OPTIONS.loadNavbar).then(render.renderNavbar))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user