File tree 2 files changed +5
-58
lines changed
2 files changed +5
-58
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -9,9 +9,6 @@ import './share';
9
9
import './codemirror-kcl' ;
10
10
import { load , invokeKCLRun , invokeKCLFmt } from "../module" ;
11
11
12
- const response = await fetch ( "kcl.wasm" ) ;
13
- const wasm = await response . arrayBuffer ( ) ;
14
- const inst = await load ( { data : wasm } ) ;
15
12
const source = document . getElementById ( 'source' ) ;
16
13
const run = document . getElementById ( 'run' ) ;
17
14
const outputContainer = document . getElementById ( 'output-container' ) ;
@@ -27,6 +24,11 @@ const editor = CodeMirror.fromTextArea(source, {
27
24
lineWrapping : true ,
28
25
smartIndent : true ,
29
26
} ) ;
27
+ editor . setValue ( "Loading KCL WASM module..." ) ;
28
+
29
+ const response = await fetch ( "kcl.wasm" ) ;
30
+ const wasm = await response . arrayBuffer ( ) ;
31
+ const inst = await load ( { data : wasm } ) ;
30
32
31
33
class Mutex {
32
34
constructor ( ) {
You can’t perform that action at this time.
0 commit comments