mirror of
https://codeberg.org/uzu/strudel
synced 2026-09-10 08:21:58 -04:00
wait for ctx.resume
This commit is contained in:
+2
-2
@@ -183,8 +183,8 @@ function App() {
|
||||
</div>
|
||||
<div className="flex">
|
||||
<button
|
||||
onClick={() => {
|
||||
getAudioContext().resume(); // fixes no sound in ios webkit
|
||||
onClick={async () => {
|
||||
await getAudioContext().resume(); // fixes no sound in ios webkit
|
||||
togglePlay();
|
||||
}}
|
||||
className={cx('hover:bg-gray-300', !isEmbedded ? 'p-2' : 'px-2')}
|
||||
|
||||
Reference in New Issue
Block a user