mirror of
https://github.com/vale981/DiscoTOC
synced 2025-03-04 17:11:42 -05:00
only wikis
This commit is contained in:
parent
237dc05b43
commit
a7a444eec2
1 changed files with 1 additions and 1 deletions
|
@ -262,7 +262,7 @@
|
||||||
if ($elem.hasClass("d-editor-preview")) return;
|
if ($elem.hasClass("d-editor-preview")) return;
|
||||||
if (!$elem.parents("article#post_1").length) return;
|
if (!$elem.parents("article#post_1").length) return;
|
||||||
|
|
||||||
const dToc = $elem.find(`[data-theme-toc="true"]`);
|
const dToc = $elem.parents('.wiki');
|
||||||
|
|
||||||
if (!dToc.length) return this;
|
if (!dToc.length) return this;
|
||||||
const body = $elem;
|
const body = $elem;
|
||||||
|
|
Loading…
Add table
Reference in a new issue