From d3d2e39e42467937727d896748c43aeca3c10ec3 Mon Sep 17 00:00:00 2001 From: Romashka Date: Thu, 19 Dec 2024 15:38:20 +0200 Subject: [PATCH] code-Update wasi.ts --- src/worker/wasi.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/worker/wasi.ts b/src/worker/wasi.ts index 1941894..af0579d 100644 --- a/src/worker/wasi.ts +++ b/src/worker/wasi.ts @@ -51,7 +51,7 @@ const browserBindings = { async function loadWasm(url: string) { const response = await fetch(url) - const contentType = response.headers.get("Content-Type") || "" + const contentType = response.headers.get("Content-Type") ?? "" if ( "instantiateStreaming" in WebAssembly && contentType.startsWith("application/wasm")