From 52c1f80d4bb9f328b1bb2a62918c2b0aa2ae69fd Mon Sep 17 00:00:00 2001 From: Simon Cambier Date: Sat, 2 Dec 2023 22:34:35 +0100 Subject: [PATCH] Fixed annoying bug --- src/routes/editor/+page.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/editor/+page.svelte b/src/routes/editor/+page.svelte index 9a8a6f7..7bd8c37 100644 --- a/src/routes/editor/+page.svelte +++ b/src/routes/editor/+page.svelte @@ -33,7 +33,7 @@ }, 1000) 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' editor = new CodeMirror(byId('editor'), {