Removed window type guard in createFFmpeg.js
This commit is contained in:
parent
74ca423df2
commit
d870f420d7
@ -75,7 +75,6 @@ module.exports = (_options = {}) => {
|
||||
* as we are using blob URL instead of original URL to avoid cross origin issues.
|
||||
*/
|
||||
locateFile: (path, prefix) => {
|
||||
if (typeof window !== 'undefined') {
|
||||
if (typeof wasmPath !== 'undefined'
|
||||
&& path.endsWith('ffmpeg-core.wasm')) {
|
||||
return wasmPath;
|
||||
@ -84,8 +83,6 @@ module.exports = (_options = {}) => {
|
||||
&& path.endsWith('ffmpeg-core.worker.js')) {
|
||||
return workerPath;
|
||||
}
|
||||
}
|
||||
return prefix + path;
|
||||
},
|
||||
});
|
||||
ffmpeg = Core.cwrap('proxy_main', 'number', ['number', 'number']);
|
||||
|
Loading…
Reference in New Issue
Block a user