diff options
author | Ekaitz Zarraga <ekaitz@elenq.tech> | 2020-01-18 19:08:30 +0100 |
---|---|---|
committer | Ekaitz Zarraga <ekaitz@elenq.tech> | 2020-01-18 19:08:42 +0100 |
commit | 7262fa55d2685d9e831368c75e6f2bcf72917b2a (patch) | |
tree | f20edbd2f08cda9dcd84417d311c9bcce02889d5 /themes | |
parent | e665b9762ef33e4a4950685f8cc112b5f223b033 (diff) |
Remove some typos
Diffstat (limited to 'themes')
-rw-r--r-- | themes/elenq/static/js/colorscheme-switcher.js | 5 |
1 files 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); |