Merge pull request #3926 from NoelDeMartin/MOBILE-3947

MOBILE-3947 fileuploader: Fix audio recorder
main
Dani Palou 2024-02-08 14:06:29 +01:00 committed by GitHub
commit 0c7e7c9209
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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` }),