From 9b64db908fbaedcf6e9df6764344ab9874b3b94f Mon Sep 17 00:00:00 2001 From: steveklabnik Date: Fri, 22 Sep 2017 13:58:45 -0400 Subject: [PATCH] prefix sidebar too --- src/theme/book.js | 8 ++++---- src/theme/index.hbs | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/theme/book.js b/src/theme/book.js index 8351bc7f..56dc7425 100644 --- a/src/theme/book.js +++ b/src/theme/book.js @@ -336,17 +336,17 @@ function sidebarToggle() { var html = $("html"); if ( html.hasClass("sidebar-hidden") ) { html.removeClass("sidebar-hidden").addClass("sidebar-visible"); - store.set('sidebar', 'visible'); + store.set('mdbook-sidebar', 'visible'); } else if ( html.hasClass("sidebar-visible") ) { html.removeClass("sidebar-visible").addClass("sidebar-hidden"); - store.set('sidebar', 'hidden'); + store.set('mdbook-sidebar', 'hidden'); } else { if($("#sidebar").position().left === 0){ html.addClass("sidebar-hidden"); - store.set('sidebar', 'hidden'); + store.set('mdbook-sidebar', 'hidden'); } else { html.addClass("sidebar-visible"); - store.set('sidebar', 'visible'); + store.set('mdbook-sidebar', 'visible'); } } } diff --git a/src/theme/index.hbs b/src/theme/index.hbs index f4803886..e115ee64 100644 --- a/src/theme/index.hbs +++ b/src/theme/index.hbs @@ -67,7 +67,7 @@