Skip to content

Commit 7b8a6f7

Browse files
committed
Formatting
1 parent b4040dd commit 7b8a6f7

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/backends/onnx.js

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)