We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1b6f6e7 commit 84583c6Copy full SHA for 84583c6
cmd/chromad/static/chroma.js
@@ -12,10 +12,12 @@ class ChromaWASM {
12
try {
13
// Create a new Go instance (wasm_exec.js already imported in initChroma)
14
const go = new Go();
15
- WebAssembly.instantiateStreaming(fetch("./static/chroma.wasm"), go.importObject).then((result) => {
16
- go.run(result.instance);
17
- this.ready = true;
18
- });
+ const result = await WebAssembly.instantiateStreaming(
+ fetch("./static/chroma.wasm"),
+ go.importObject
+ );
19
+ go.run(result.instance);
20
+ this.ready = true;
21
console.log("Chroma WASM module initialized successfully");
22
} catch (error) {
23
console.error("Failed to initialize Chroma WASM module:", error);
0 commit comments