Skip to content

Commit

Permalink
fix: 🚑 fix github pages asset path
Browse files Browse the repository at this point in the history
  • Loading branch information
omaaraguirre committed Aug 11, 2024
1 parent 4a709db commit d16797b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/SongButton.jsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import { prefix } from '@/constants'
import { useMemo, useState } from 'react'

const SongButton = () => {
const [isPlaying, setIsPlaying] = useState(false)

const song = useMemo(() => {
const audio = new Audio('/song.mp3')
const audio = new Audio(`${prefix}/song.mp3`)
audio.volume = 0.5
return audio
}, [])
Expand Down

0 comments on commit d16797b

Please sign in to comment.