Merge pull request #3926 from NoelDeMartin/MOBILE-3947
MOBILE-3947 fileuploader: Fix audio recordermain
commit
0c7e7c9209
|
@ -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