From 57b322a1b172eb2acf33a8876aef8ebaf9c31c26 Mon Sep 17 00:00:00 2001 From: Marius Gavrilescu Date: Sat, 18 Apr 2015 11:08:56 +0300 Subject: [PATCH] Fix 90-themes.js --- js/90-themes.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/90-themes.js b/js/90-themes.js index c872919..0e48176 100644 --- a/js/90-themes.js +++ b/js/90-themes.js @@ -11,7 +11,7 @@ $(function() { '
  • White'; var sidebar = $('#sidebar')[0]; sidebar.insertBefore(m(theme_ul), sidebar.firstChild); - $('#themes a').on('click', e => set_style(this.dataset.theme)); + $('#themes a').on('click', e => set_style(e.target.dataset.theme)); }); let theme = localStorage.getItem("theme"); -- 2.39.2