mirror of
https://github.com/vale981/DiscoTOC
synced 2025-03-04 17:11:42 -05:00
only target toc topics
This commit is contained in:
parent
dacb213a36
commit
cd21d0bdfd
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Reference in a new issue