MOBILE-3947 fileuploader: Fix audio recorder

main
Noel De Martin 2024-02-08 12:07:48 +01:00
parent 0e2b94a43c
commit 90b4eb3ecb
1 changed files with 1 additions and 1 deletions

View File

@ -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` }),