From 0dd6a17187d20af07a6dcac44b8a600127c2b522 Mon Sep 17 00:00:00 2001 From: Mathieu David Date: Mon, 28 Dec 2015 16:39:14 +0100 Subject: [PATCH] Fix some small things in javascript --- src/theme/book.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/theme/book.js b/src/theme/book.js index b07c9929..13aaed88 100644 --- a/src/theme/book.js +++ b/src/theme/book.js @@ -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); }); }