From ecf04b80a70c6aa599573d755c51809b3c6e64d2 Mon Sep 17 00:00:00 2001 From: moisseev Date: Wed, 31 Aug 2022 14:19:45 +0300 Subject: [PATCH] [WebUI] Wrap Prism.highlightElement antonmedv/codejar#85 --- interface/js/app/config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) ); } -- 2.39.5