File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed
Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -192,12 +192,10 @@ if (ONNX_ENV?.wasm) {
192192 // (Optional) Set path to wasm files. This will override the default path search behavior of onnxruntime-web.
193193 // By default, we only do this if we are not in a service worker and the wasmPaths are not already set.
194194 if (
195- (
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
200- )
195+ // @ts -ignore Cannot find name 'ServiceWorkerGlobalScope'.ts(2304)
196+ ! ( typeof ServiceWorkerGlobalScope !== 'undefined' && self instanceof ServiceWorkerGlobalScope ) &&
197+ ONNX_ENV . versions ?. web &&
198+ ! ONNX_ENV . wasm . wasmPaths
201199 ) {
202200 const wasmPathPrefix = `https://cdn.jsdelivr.net/npm/onnxruntime-web@${ ONNX_ENV . versions . web } /dist/` ;
203201
You can’t perform that action at this time.
0 commit comments