From 6b243c117929dd2a327326cecc9a6fea862cbb7f Mon Sep 17 00:00:00 2001 From: Joffrey JAFFEUX Date: Thu, 4 Apr 2019 14:03:04 +0200 Subject: [PATCH] FIX: uses run.next() --- common/header.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/header.html b/common/header.html index 081a4fd..26a82ff 100644 --- a/common/header.html +++ b/common/header.html @@ -224,7 +224,7 @@ I18n.translations[I18n.currentLocale()].js.composer.contains_dtoc = I18n.t( }); })(() => {}); $.fn.dtoc = $elem => { - run.scheduleOnce("next", () => { + run.next(() => { if ($elem.hasClass("d-editor-preview")) return; if (!$elem.parents("article#post_1").length) return; const dToc = $elem.find(`[data-theme-toc="true"]`);