MOBILE-3947 fileuploader: Fix audio recorder
parent
0e2b94a43c
commit
90b4eb3ecb
|
@ -225,7 +225,7 @@ export class CoreFileUploaderAudioRecorderComponent extends CoreModalComponent<C
|
|||
* @returns Worker.
|
||||
*/
|
||||
protected startWorker(): Worker {
|
||||
const worker = new Worker('./audio-recorder.worker', { type: 'module' });
|
||||
const worker = new Worker(new URL('./audio-recorder.worker', import.meta.url));
|
||||
|
||||
worker.postMessage(
|
||||
initAudioEncoderMessage({ vmsgWasmUrl: `${document.head.baseURI}assets/lib/vmsg/vmsg.wasm` }),
|
||||
|
|
Loading…
Reference in New Issue