summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEltrac Koalar <hi@guhub.cn>2022-09-25 17:33:40 +0800
committerEltrac Koalar <hi@guhub.cn>2022-09-25 17:33:40 +0800
commit44498e922914abbe9d2b49d8f2d8d9c05a06f7e8 (patch)
treeab4ba76d8d04b163c4c4b5358f70ef84d593aa02
parent70d96cc897770f53efe7ab937b346e0b20f93f46 (diff)
:bug: Fix: 切换页面不关闭专注模式的问题
-rw-r--r--assets/matcha/matcha.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/assets/matcha/matcha.js b/assets/matcha/matcha.js
index 17fe9d6..be0c77f 100644
--- a/assets/matcha/matcha.js
+++ b/assets/matcha/matcha.js
@@ -363,7 +363,7 @@ $(document).pjax('a[href^="' + siteurl + '"]:not(a[target="_blank"], a[no-pjax],
if ($('.toc').length) tocbot.destroy();//摧毁文章目录
$(window).off('scroll');
$(window).on('scroll', back2topShow);//取消文章目录自动关闭的滚动绑定
- if($(body).hasClass('focus-mode')) toggleFocusMode();//切换页面时关闭专注模式
+ if($('body').hasClass('focus-mode')) toggleFocusMode();//切换页面时关闭专注模式
}).on('pjax:complete', function() {
$("#main").removeClass("fadeout").addClass("fadein").hide().fadeIn(700);