1
0

try #13 (fix syntax error)

This commit is contained in:
Deven Blake 2021-06-20 20:17:47 -04:00
parent 6076fc884e
commit cdd78ce1a9

View File

@ -47,10 +47,11 @@ window.load_highlighting = function(language){
var language = window.to_be_highlighted.shift()
var elements = document.getElementsByClassName("language-" + language);
for(var i = 0; i < elements.length; ++i)
try
try{
hljs.highlightElement(element);
catch(err)
}catch(err){
console.log(err.message);
}
window.is_highlighted_languages.push(language);
}