mirror of
https://github.com/writeas/writefreely
synced 2025-01-21 03:55:25 +01:00
Only push language uri once on load stack
This commit is contained in:
parent
b034a08350
commit
3b4d14f194
@ -44,8 +44,9 @@
|
||||
// Check what we need to load
|
||||
for (i=0; i < lb.length; i++) {
|
||||
lang = lb[i].className.replace('language-','');
|
||||
if (!langs.includes(lang)) {
|
||||
jss.push(hlbaseUri + "languages/" + lang + ".min.js");
|
||||
lurl = hlbaseUri + "languages/" + lang + ".min.js";
|
||||
if (!(langs.includes(lang) || jss.includes(lurl))) {
|
||||
jss.push(lurl);
|
||||
}
|
||||
}
|
||||
// Load files in order, higlight on last load
|
||||
|
Loading…
Reference in New Issue
Block a user