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() } 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))
} }
} }