diff options
author | Balearica <admin@scribeocr.com> | 2022-08-22 01:34:38 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-22 01:34:38 +0300 |
commit | ea3346312062d1c3c5bfbed33b8c1672784d58bf (patch) | |
tree | 8723ebf3d17f96c23637ed78318beef5aab69967 | |
parent | 90c8d99b3c13e0d7a1370858a18c0f40736b4cb9 (diff) |
Fix for default browser corePath per #643 (#644)
-rw-r--r-- | src/utils/resolvePaths.js | 2 |
1 files changed, 1 insertions, 1 deletions
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]); } }); |