Change key for theme to not clobber old books

Fixes https://github.com/azerupi/mdBook/issues/448
This commit is contained in:
steveklabnik 2017-09-19 16:59:16 -04:00
parent 911683d2cf
commit 793fb8f654
1 changed files with 2 additions and 2 deletions

View File

@ -7,7 +7,7 @@ $( document ).ready(function() {
window.onunload = function(){};
// Set theme
var theme = store.get('theme');
var theme = store.get('mdbook-theme');
if (theme === null || theme === undefined) { theme = 'light'; }
set_theme(theme);
@ -145,7 +145,7 @@ $( document ).ready(function() {
});
}
store.set('theme', theme);
store.set('mdbook-theme', theme);
$('body').removeClass().addClass(theme);
}