Change key for theme to not clobber old books
Fixes https://github.com/azerupi/mdBook/issues/448
This commit is contained in:
parent
911683d2cf
commit
793fb8f654
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue