From cd21d0bdfd441afb4a1317b11e01b0cd4696ee41 Mon Sep 17 00:00:00 2001 From: Joe <33972521+hnb-ku@users.noreply.github.com> Date: Sat, 9 Mar 2019 14:04:05 +0800 Subject: [PATCH] only target toc topics --- common/header.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/header.html b/common/header.html index 5fce57b..aa4816d 100644 --- a/common/header.html +++ b/common/header.html @@ -313,7 +313,7 @@ api.modifyClass("component:topic-timeline", { } }); api.onAppEvent("topic:current-post-changed", post => { - if (!$(".d-toc-timeline").length) return; + if (!$(".d-toc-regular").length) return; if (post.post.post_number === 1) { $(".d-toc-timeline").hide(); $(".d-toc-toggle").fadeIn();