This commit is contained in:
Felix Roos
2026-08-16 10:21:31 +02:00
parent ef106b356f
commit 98d19a6643
+1 -3
View File
@@ -178,9 +178,7 @@ const isFirefox = navigator?.userAgent?.includes('Firefox');
function timedSend(timeMs, fn) {
if (isFirefox) {
const audioTime = getAudioContext().currentTime + (timeMs - performance.now()) / 1000;
scheduleAtTime(() => {
fn(undefined);
}, audioTime);
scheduleAtTime(() => fn(undefined), audioTime);
} else {
fn(timeMs);
}