We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e9e314b commit 2c364b8Copy full SHA for 2c364b8
packages/ffmpeg/src/worker.ts
@@ -50,9 +50,11 @@ const load = async ({
50
const first = !ffmpeg;
51
52
try {
53
- if (!_coreURL) _coreURL = CORE_URL;
+ let tempCoreURL = _coreURL;
54
+ if (!tempCoreURL) tempCoreURL = CORE_URL;
55
// when web worker type is `classic`.
- importScripts(_coreURL);
56
+ importScripts(tempCoreURL);
57
+ _coreURL = tempCoreURL;
58
} catch {
59
if (!_coreURL) _coreURL = CORE_URL.replace('/umd/', '/esm/');
60
// when web worker type is `module`.
0 commit comments