File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,8 @@ set positional-arguments := true
22set shell := [" bash" , " -c" ]
33
44version := ` git describe --tags --dirty --always `
5+ export GOOS := env (" GOOS" , " linux" )
6+ export GOARCH := env (" GOARCH" , " amd64" )
57
68_ help :
79 @ just -l
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ class ChromaWASM {
1212 try {
1313 // Create a new Go instance (wasm_exec.js already imported in initChroma)
1414 const go = new Go ( ) ;
15- WebAssembly . instantiateStreaming ( fetch ( "/static/chroma.wasm" ) , go . importObject ) . then ( ( result ) => {
15+ WebAssembly . instantiateStreaming ( fetch ( ". /static/chroma.wasm" ) , go . importObject ) . then ( ( result ) => {
1616 go . run ( result . instance ) ;
1717 this . ready = true ;
1818 } ) ;
@@ -73,7 +73,7 @@ async function initChroma() {
7373 }
7474
7575 try {
76- await import ( "/static/wasm_exec.js" ) ;
76+ await import ( ". /static/wasm_exec.js" ) ;
7777 return new ChromaWASM ( ) ;
7878 } catch ( error ) {
7979 return null ;
You can’t perform that action at this time.
0 commit comments