aboutsummaryrefslogtreecommitdiff
path: root/static/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'static/index.js')
-rw-r--r--static/index.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/static/index.js b/static/index.js
index 022082d..c09faea 100644
--- a/static/index.js
+++ b/static/index.js
@@ -1,5 +1,8 @@
import CodeFlask from "https://cdn.jsdelivr.net/npm/codeflask@1.4.1/+esm";
+console.log(CodeFlask);
+globalThis.CodeFlask = CodeFlask;
+
const output = document.querySelector("#output");
const initialCode = document.querySelector("#code").innerHTML;
@@ -52,7 +55,7 @@ function appendOutput(content, className) {
const editor = new CodeFlask("#editor-target", {
language: "gleam",
- defaultTheme: false
+ defaultTheme: false,
});
editor.addLanguage("gleam", prismGrammar);
editor.updateCode(initialCode);