wait for ctx.resume
This commit is contained in:
parent
9497c99e9e
commit
8103943396
2 changed files with 4 additions and 4 deletions
|
|
@ -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')}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue