Skip to content

Commit

Permalink
fix: audio loop
Browse files Browse the repository at this point in the history
fix #363
  • Loading branch information
mateusfg7 authored Sep 2, 2022
1 parent ea793ea commit 31fd33b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Sound/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export const Sound: React.FC<ISound> = ({ name, iconFile, audioFile }) => {
}`}
onClick={() => toggleSoundState()}
>
<audio ref={soundRef}>
<audio ref={soundRef} loop>
<source src={`/sounds/${audioFile.name}`} type={audioFile.type} />
</audio>
<Image
Expand Down

1 comment on commit 31fd33b

@vercel
Copy link

@vercel vercel bot commented on 31fd33b Sep 2, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

noisekun – ./

noisekun-git-main-mateusfg7.vercel.app
noisekun.vercel.app
noisekun-mateusfg7.vercel.app

Please sign in to comment.