Skip to content

Commit

Permalink
fix(audio): enable controls for audio element
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonGolms committed Apr 4, 2021
1 parent 711ab2a commit 2c9559c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/utils/hooks/useAudio.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ export const useAudio = (url) => {

useEffect(() => {
if (url) {
audio.controls = true;
audio.src = url;
}
}, [audio, url]);
Expand Down

0 comments on commit 2c9559c

Please sign in to comment.