From 5fd85bfc50810d6589afdaf519bc68fb1ebfb177 Mon Sep 17 00:00:00 2001 From: Mikhail Kiselev Date: Tue, 10 Feb 2026 16:23:30 +0300 Subject: [PATCH] fix: add AudioContext resume in main timer --- frontend/src/App.svelte | 3 +++ 1 file changed, 3 insertions(+) diff --git a/frontend/src/App.svelte b/frontend/src/App.svelte index 9d56bbd..cc9368d 100644 --- a/frontend/src/App.svelte +++ b/frontend/src/App.svelte @@ -122,6 +122,9 @@ function playBeep(frequency, duration, type = 'sine') { try { const ctx = getAudioContext() + if (ctx.state === 'suspended') { + ctx.resume() + } const oscillator = ctx.createOscillator() const gainNode = ctx.createGain()