This commit is contained in:
Jade (Rose) Rowland 2025-04-07 23:55:34 -04:00
parent b1090a1dd8
commit 9e233fe587

View File

@ -175,8 +175,8 @@ export function getAudioContextCurrentTime() {
let workletsLoading; let workletsLoading;
function loadWorklets() { function loadWorklets() {
if (!workletsLoading) { if (!workletsLoading) {
const contextPromise = getAudioContext(); const audioCtx = getAudioContext();
workletsLoading = contextPromise.audioWorklet.addModule(workletsUrl); workletsLoading = audioCtx.audioWorklet.addModule(workletsUrl);
} }
return workletsLoading; return workletsLoading;