From: moisseev Date: Wed, 31 Aug 2022 11:19:45 +0000 (+0300) Subject: [WebUI] Wrap Prism.highlightElement X-Git-Tag: 3.3~49^2~1 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=ecf04b80a70c6aa599573d755c51809b3c6e64d2;p=rspamd.git [WebUI] Wrap Prism.highlightElement antonmedv/codejar#85 --- diff --git a/interface/js/app/config.js b/interface/js/app/config.js index 480a0ca58..decaa4a26 100644 --- a/interface/js/app/config.js +++ b/interface/js/app/config.js @@ -187,7 +187,7 @@ define(["jquery", "codejar", "linenumbers", "prism"], if (editor[mode].codejar) { jar = new CodeJar( document.querySelector("#editor"), - withLineNumbers(Prism.highlightElement) + withLineNumbers((el) => Prism.highlightElement(el)) ); }