From ea3346312062d1c3c5bfbed33b8c1672784d58bf Mon Sep 17 00:00:00 2001 From: Balearica <admin@scribeocr.com> Date: Sun, 21 Aug 2022 15:34:38 -0700 Subject: [PATCH] Fix for default browser corePath per #643 (#644) --- src/utils/resolvePaths.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/resolvePaths.js b/src/utils/resolvePaths.js index 5aa2b74..566d578 100644 --- a/src/utils/resolvePaths.js +++ b/src/utils/resolvePaths.js @@ -4,7 +4,7 @@ const resolveURL = isBrowser ? require('resolve-url') : s => s; // eslint-disabl module.exports = (options) => { const opts = { ...options }; ['corePath', 'workerPath', 'langPath'].forEach((key) => { - if (typeof options[key] !== 'undefined') { + if (options[key]) { opts[key] = resolveURL(opts[key]); } });