summaryrefslogtreecommitdiff
path: root/themes/elenq/static
diff options
context:
space:
mode:
Diffstat (limited to 'themes/elenq/static')
-rw-r--r--themes/elenq/static/js/colorscheme-switcher.js5
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);