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 bf73184 commit b4040ddCopy full SHA for b4040dd
src/backends/onnx.js
@@ -192,8 +192,8 @@ if (ONNX_ENV?.wasm) {
192
// (Optional) Set path to wasm files. This will override the default path search behavior of onnxruntime-web.
193
// By default, we only do this if we are not in a service worker and the wasmPaths are not already set.
194
if (
195
- // @ts-ignore Cannot find name 'ServiceWorkerGlobalScope'.ts(2304)
196
(
+ // @ts-ignore Cannot find name 'ServiceWorkerGlobalScope'.ts(2304)
197
!(typeof ServiceWorkerGlobalScope !== 'undefined' && self instanceof ServiceWorkerGlobalScope) &&
198
ONNX_ENV.versions?.web &&
199
!ONNX_ENV.wasm.wasmPaths
0 commit comments