Skip to content

Commit b4040dd

Browse files
committed
Fix ts-ignore
1 parent bf73184 commit b4040dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backends/onnx.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,8 +192,8 @@ 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-
// @ts-ignore Cannot find name 'ServiceWorkerGlobalScope'.ts(2304)
196195
(
196+
// @ts-ignore Cannot find name 'ServiceWorkerGlobalScope'.ts(2304)
197197
!(typeof ServiceWorkerGlobalScope !== 'undefined' && self instanceof ServiceWorkerGlobalScope) &&
198198
ONNX_ENV.versions?.web &&
199199
!ONNX_ENV.wasm.wasmPaths

0 commit comments

Comments
 (0)