mirror of
https://github.com/rust-lang/mdBook
synced 2024-12-14 06:42:35 +00:00
Fix some small things in javascript
This commit is contained in:
parent
7762475b33
commit
0dd6a17187
1 changed files with 2 additions and 2 deletions
|
@ -8,7 +8,7 @@ $( document ).ready(function() {
|
|||
|
||||
// Set theme
|
||||
var theme = localStorage.getItem('theme');
|
||||
if (theme == null) { theme = 'light'; }
|
||||
if (theme === null) { theme = 'light'; }
|
||||
|
||||
set_theme(theme);
|
||||
|
||||
|
@ -84,7 +84,7 @@ $( document ).ready(function() {
|
|||
$('.theme').click(function(){
|
||||
var theme = $(this).attr('id');
|
||||
|
||||
set_theme(theme)
|
||||
set_theme(theme);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue