commit ecf04b8: [WebUI] Wrap Prism.highlightElement
moisseev
moiseev at mezonplus.ru
Wed Aug 31 20:28:03 UTC 2022
Author: moisseev
Date: 2022-08-31 14:19:45 +0300
URL: https://github.com/rspamd/rspamd/commit/ecf04b80a70c6aa599573d755c51809b3c6e64d2
[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))
);
}
More information about the Commits
mailing list