diff options
author | moisseev <moiseev@mezonplus.ru> | 2022-08-31 14:19:45 +0300 |
---|---|---|
committer | moisseev <moiseev@mezonplus.ru> | 2022-08-31 14:19:45 +0300 |
commit | ecf04b80a70c6aa599573d755c51809b3c6e64d2 (patch) | |
tree | 8b703d623f27bbccdbdd06414733079a9f34f813 /interface | |
parent | 6ffecd3d98e6dd152814ccf002fd816d34fa21f3 (diff) | |
download | rspamd-ecf04b80a70c6aa599573d755c51809b3c6e64d2.tar.gz rspamd-ecf04b80a70c6aa599573d755c51809b3c6e64d2.zip |
[WebUI] Wrap Prism.highlightElement
antonmedv/codejar#85
Diffstat (limited to 'interface')
-rw-r--r-- | interface/js/app/config.js | 2 |
1 files changed, 1 insertions, 1 deletions
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)) ); } |