wait for ctx.resume

This commit is contained in:
Felix Roos 2022-08-21 11:21:36 +02:00
parent 9497c99e9e
commit 8103943396
2 changed files with 4 additions and 4 deletions

View file

@ -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')}