forked from noxious/client
Added playSound func, use this on attack
This commit is contained in:
@ -47,7 +47,7 @@ addEventListener('click', (event) => {
|
||||
if (!(event.target instanceof HTMLButtonElement)) {
|
||||
return
|
||||
}
|
||||
const audio = new Audio('/assets/music/click-btn.mp3')
|
||||
const audio = new Audio('/assets/sounds/click-btn.mp3')
|
||||
audio.play()
|
||||
})
|
||||
|
||||
|
Reference in New Issue
Block a user