Skip to content

Commit

Permalink
Merge pull request #3926 from NoelDeMartin/MOBILE-3947
Browse files Browse the repository at this point in the history
MOBILE-3947 fileuploader: Fix audio recorder
  • Loading branch information
dpalou authored Feb 8, 2024
2 parents 0e2b94a + 90b4eb3 commit 0c7e7c9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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` }),
Expand Down

0 comments on commit 0c7e7c9

Please sign in to comment.