Skip to content

Commit

Permalink
fix(theme-default): fix restore login when disable sidebar
Browse files Browse the repository at this point in the history
  • Loading branch information
azu committed Jul 8, 2020
1 parent 9d8bc81 commit 8445459
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions packages/@honkit/theme-default/_layouts/website/page.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,11 @@
return;
}
var sidebarState = __init__getSidebarState(true)
if (!sidebarState) {
return;
}
var book = document.querySelector(".book");
if (!book) {
return;
// Show sidebar if it enabled
if (sidebarState && book) {
book.classList.add("without-animation", "with-summary");
}
book.classList.add("without-animation", "with-summary");
book.classList.remove("honkit-cloak");
}
__init__restoreLastSidebarState();
Expand Down

0 comments on commit 8445459

Please sign in to comment.