1
0
This commit is contained in:
Deven Blake 2021-06-20 08:30:41 -04:00
parent df6e2893f6
commit 4ad918ee6c

View File

@ -27,11 +27,11 @@ window.load_highlighting = function(language){
document.body.appendChild(script); document.body.appendChild(script);
window.is_hljs_here = 1; window.is_hljs_here = 1;
} }
if(window.ishighlighted.indexOf(language) == -1){ if(window.is_highlighted.indexOf(language) == -1){
script = document.createElement('script'); script = document.createElement('script');
script.src = "https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.0.1/languages/" + language + ".min.js"; script.src = "https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.0.1/languages/" + language + ".min.js";
document.body.appendChild(script); document.body.appendChild(script);
window.ishighlighted.push(language); window.is_highlighted.push(language);
} }
} }
</SCRIPT> </SCRIPT>