Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update wasm loading text #48

Merged
merged 1 commit into from
Sep 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 0 additions & 55 deletions .github/workflows/deploy.yaml

This file was deleted.

8 changes: 5 additions & 3 deletions src/js/editor/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@ import './share';
import './codemirror-kcl';
import { load, invokeKCLRun, invokeKCLFmt } from "../module";

const response = await fetch("kcl.wasm");
const wasm = await response.arrayBuffer();
const inst = await load({ data: wasm });
const source = document.getElementById('source');
const run = document.getElementById('run');
const outputContainer = document.getElementById('output-container');
Expand All @@ -27,6 +24,11 @@ const editor = CodeMirror.fromTextArea(source, {
lineWrapping: true,
smartIndent: true,
});
editor.setValue("Loading KCL WASM module...");

const response = await fetch("kcl.wasm");
const wasm = await response.arrayBuffer();
const inst = await load({ data: wasm });

class Mutex {
constructor() {
Expand Down
Loading