Fixed annoying bug

This commit is contained in:
Simon Cambier 2023-12-02 22:34:35 +01:00
parent cd899df541
commit 52c1f80d4b

View File

@ -33,7 +33,7 @@
}, 1000) }, 1000)
async function initCodeEditor() { async function initCodeEditor() {
$selectedLang = new URLSearchParams(window.location.search).get('l') ?? ' plt' $selectedLang = new URLSearchParams(window.location.search).get('l') ?? 'plt'
CodeMirror.modeURL = 'https://cdn.jsdelivr.net/npm/codemirror@5.65.16/mode/%N/%N.js' CodeMirror.modeURL = 'https://cdn.jsdelivr.net/npm/codemirror@5.65.16/mode/%N/%N.js'
editor = new CodeMirror(byId('editor'), { editor = new CodeMirror(byId('editor'), {