From 7262fa55d2685d9e831368c75e6f2bcf72917b2a Mon Sep 17 00:00:00 2001 From: Ekaitz Zarraga Date: Sat, 18 Jan 2020 19:08:30 +0100 Subject: Remove some typos --- themes/elenq/static/js/colorscheme-switcher.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/themes/elenq/static/js/colorscheme-switcher.js b/themes/elenq/static/js/colorscheme-switcher.js index 63c0abb..dc0a7bd 100644 --- a/themes/elenq/static/js/colorscheme-switcher.js +++ b/themes/elenq/static/js/colorscheme-switcher.js @@ -4,7 +4,7 @@ var body = document.getElementsByTagName("BODY")[0]; function init( color ){ - change(color, true) + change(color, true); localStorage.setItem('color', color); theme_switch.setAttribute("color", color); } @@ -32,7 +32,7 @@ function theme_change_requested(){ } function getCurrentColor(){ - // Color was set befor in localStorage + // Color was set before in localStorage var storage_color = localStorage.getItem("color"); if(storage_color !== null){ return storage_color; @@ -50,4 +50,3 @@ function getCurrentColor(){ init( getCurrentColor() ) theme_switch.addEventListener("click", theme_change_requested); -theme_switch.addEventListener("touch", theme_change_requested); -- cgit v1.2.3