]> source.dussan.org Git - rspamd.git/commitdiff
[WebUI] Wrap Prism.highlightElement
authormoisseev <moiseev@mezonplus.ru>
Wed, 31 Aug 2022 11:19:45 +0000 (14:19 +0300)
committermoisseev <moiseev@mezonplus.ru>
Wed, 31 Aug 2022 11:19:45 +0000 (14:19 +0300)
antonmedv/codejar#85

interface/js/app/config.js

index 480a0ca583efd1a2682fd9feeadfdc0075e246df..decaa4a26157967f6c1af9199004a64e33bfef84 100644 (file)
@@ -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))
                             );
                         }