summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--public/js/index.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/public/js/index.js b/public/js/index.js
index afc894ca3b..90412756f1 100644
--- a/public/js/index.js
+++ b/public/js/index.js
@@ -2007,7 +2007,10 @@ $(document).ready(function () {
// Highlight JS
if (typeof hljs != 'undefined') {
- hljs.initHighlightingOnLoad();
+ const nodes = [].slice.call(document.querySelectorAll('pre code') || []);
+ for (let i = 0; i < nodes.length; i++) {
+ hljs.highlightBlock(nodes[i]);
+ }
}
// Dropzone