diff --git a/index.html b/index.html index 7cf302b..0f88f50 100644 --- a/index.html +++ b/index.html @@ -1,10 +1,3 @@ -
diff --git a/js/ditto.js b/js/ditto.js index c633dd4..3f8e121 100644 --- a/js/ditto.js +++ b/js/ditto.js @@ -142,11 +142,11 @@ function searchbar_listener(event) { function init_theme_button() { $(ditto.theme_id).show(); // 默认主题 - var currfontColor = localStorage.getItem('fontColor') || '#0d141e'; - var currbgColor = localStorage.getItem('bgColor') || '#ffffff'; + var currFontColor = localStorage.getItem('fontColor') || '#0d141e'; + var currBgColor = localStorage.getItem('bgColor') || '#ffffff'; $('body').css({ - color: currfontColor, - backgroundColor: currbgColor + color: currFontColor, + backgroundColor: currBgColor }) $(ditto.theme_id).on('click', changeTheme); }