subpath bugfixes

This commit is contained in:
Lucas Winther
2026-07-10 10:24:04 +02:00
parent 135a1aebb6
commit 71cb61cd90
+1 -1
View File
@@ -31,7 +31,7 @@ import {
// them at /ort/* (src/index.ts; copied into dist/ort by scripts/build.ts)
// and the service worker runtime-caches them cache-first (src/pwa/sw.ts).
if (env.backends.onnx.wasm) {
env.backends.onnx.wasm.wasmPaths = "ort/";
env.backends.onnx.wasm.wasmPaths = "./ort/";
}
// `lib: ["DOM"]` types `self` as Window; give it the worker-scope shape we use.