Fix fallback sidebar

This commit is contained in:
qingwei.li 2017-01-24 10:18:58 +08:00
parent 3979f5cd3f
commit 2af035ff45

View File

@ -79,7 +79,7 @@ const mainRender = function (cb) {
const renderSidebar = result => { render.renderSidebar(result); cb() }
load(basePath + OPTIONS.loadSidebar).then(renderSidebar,
load(OPTIONS.loadSidebar).then(renderSidebar))
_ => load(OPTIONS.loadSidebar).then(renderSidebar))
} else {
cb()
}
@ -88,7 +88,7 @@ const mainRender = function (cb) {
// Render navbar
if (OPTIONS.loadNavbar) {
load(basePath + OPTIONS.loadNavbar).then(render.renderNavbar,
() => load(OPTIONS.loadNavbar).then(render.renderNavbar))
_ => load(OPTIONS.loadNavbar).then(render.renderNavbar))
}
}