From ff379338f994fb3979740709b91a9d8a6a507508 Mon Sep 17 00:00:00 2001 From: Christian Semmler Date: Fri, 30 Jan 2026 15:01:30 -0800 Subject: [PATCH] Fix issue on Safari: audio not playing on first toggle --- src/core/audio.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/core/audio.js b/src/core/audio.js index 984ae67..cd68588 100644 --- a/src/core/audio.js +++ b/src/core/audio.js @@ -17,8 +17,14 @@ export function playInstallAudio() { const audio = getInstallAudio(); if (audio) { audio.currentTime = 0; - audio.play(); - soundEnabled.set(true); + audio.load(); + audio.play() + .then(() => { + soundEnabled.set(true); + }) + .catch(() => { + soundEnabled.set(false); + }); } }