mirror of
https://codeberg.org/uzu/strudel
synced 2026-08-16 09:54:41 -04:00
format
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user