FIX: sync is deprecated
This commit is contained in:
parent
cd21d0bdfd
commit
a5ec5a1e8e
|
@ -224,7 +224,7 @@ I18n.translations[I18n.currentLocale()].js.composer.contains_dtoc = I18n.t(
|
||||||
});
|
});
|
||||||
})(() => {});
|
})(() => {});
|
||||||
$.fn.dtoc = $elem => {
|
$.fn.dtoc = $elem => {
|
||||||
run.scheduleOnce("sync", () => {
|
run.scheduleOnce("next", () => {
|
||||||
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.find(`[data-theme-toc="true"]`);
|
||||||
|
|
Loading…
Reference in New Issue