|
|
@ -44,8 +44,9 @@ |
|
|
|
// Check what we need to load |
|
|
|
// Check what we need to load |
|
|
|
for (i=0; i < lb.length; i++) { |
|
|
|
for (i=0; i < lb.length; i++) { |
|
|
|
lang = lb[i].className.replace('language-',''); |
|
|
|
lang = lb[i].className.replace('language-',''); |
|
|
|
if (!langs.includes(lang)) { |
|
|
|
lurl = hlbaseUri + "languages/" + lang + ".min.js"; |
|
|
|
jss.push(hlbaseUri + "languages/" + lang + ".min.js"); |
|
|
|
if (!(langs.includes(lang) || jss.includes(lurl))) { |
|
|
|
|
|
|
|
jss.push(lurl); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
// Load files in order, higlight on last load |
|
|
|
// Load files in order, higlight on last load |
|
|
|