mirror of
https://github.com/writefreely/writefreely
synced 2025-02-16 07:48:24 +00:00
Remove langs
list from post-render
as it does not actually
do anything useful (see https://github.com/writeas/writefreely/pull/128#issuecomment-506207107)
This commit is contained in:
parent
8d9f60aaa9
commit
4feac6dcd2
1 changed files with 1 additions and 3 deletions
|
@ -6,8 +6,6 @@
|
|||
var hlbaseUri = "/js/";
|
||||
var lb = document.querySelectorAll("code[class^='language-']");
|
||||
|
||||
// Set langs to the langs that are included by default (for now: 'common set' on CDN)
|
||||
var langs = [];
|
||||
|
||||
// Custom aliasmap
|
||||
var aliasmap = {
|
||||
|
@ -65,7 +63,7 @@
|
|||
// Support the aliases specified above
|
||||
if (aliasmap[lang]) lang = aliasmap[lang];
|
||||
lurl = hlbaseUri + "highlightjs/" + lang + ".min.js";
|
||||
if (!(langs.includes(lang) || jss.includes(lurl))) {
|
||||
if (!jss.includes(lurl)) {
|
||||
jss.push(lurl);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue