Browse Source

Fix for default browser corePath per #643 (#644)

pull/650/head
Balearica 2 years ago committed by GitHub
parent
commit
ea33463120
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/utils/resolvePaths.js

2
src/utils/resolvePaths.js

@ -4,7 +4,7 @@ const resolveURL = isBrowser ? require('resolve-url') : s => s; // eslint-disabl @@ -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]);
}
});

Loading…
Cancel
Save