From ba394673bd06cd2a1843ade28abc80c0c2ffe949 Mon Sep 17 00:00:00 2001 From: Balearica Date: Fri, 19 Aug 2022 22:29:58 -0700 Subject: [PATCH] Fixed bug with simd detection --- src/worker-script/browser/getCore.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/worker-script/browser/getCore.js b/src/worker-script/browser/getCore.js index f9d256e..81d31e1 100644 --- a/src/worker-script/browser/getCore.js +++ b/src/worker-script/browser/getCore.js @@ -11,9 +11,9 @@ module.exports = async (corePath, res) => { if (!corePathImport) { const simdSupport = await simd(); if (simdSupport) { - corePathImport = `https://unpkg.com/tesseract.js-core@v${dependencies['tesseract.js-core'].substring(1)}/tesseract-core.wasm.js`; - } else { corePathImport = `https://unpkg.com/tesseract.js-core@v${dependencies['tesseract.js-core'].substring(1)}/tesseract-core-simd.wasm.js`; + } else { + corePathImport = `https://unpkg.com/tesseract.js-core@v${dependencies['tesseract.js-core'].substring(1)}/tesseract-core.wasm.js`; } }