1
0
mirror of synced 2026-08-05 06:16:54 +00:00

only target toc topics

This commit is contained in:
Joe
2019-03-09 14:04:05 +08:00
committed by GitHub
parent dacb213a36
commit cd21d0bdfd
+1 -1
View File
@@ -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();