Fix worker script origin issue

This commit is contained in:
Jerome Wu
2020-04-29 09:27:21 +08:00
parent 680b4df933
commit 4cf2fe2395
3 changed files with 24 additions and 19 deletions

View File

@@ -2,7 +2,7 @@ const TIMEOUT = 60000;
const BASE_URL = 'http://localhost:3000/tests/assets';
const IS_BROWSER = typeof window !== 'undefined' && typeof window.document !== 'undefined';
const OPTIONS = {
corePath: '../node_modules/@ffmpeg/core/ffmpeg-core.js',
corePath: 'http://localhost:3000/node_modules/@ffmpeg/core/ffmpeg-core.js',
};
if (typeof module !== 'undefined') {