forked from noxious/client
Replaced button press sound
This commit is contained in:
@ -44,10 +44,8 @@ watch(
|
||||
// #209: Play sound when a button is pressed
|
||||
// @TODO: Not all button-like elements will actually be a button, so we need to find a better way to do this
|
||||
addEventListener('click', (event) => {
|
||||
if (!(event.target instanceof HTMLButtonElement)) {
|
||||
return
|
||||
}
|
||||
const audio = new Audio('/assets/sounds/click-btn.mp3')
|
||||
if (!(event.target instanceof HTMLButtonElement)) return
|
||||
const audio = new Audio('/assets/sounds/button-click.wav')
|
||||
audio.play()
|
||||
})
|
||||
|
||||
|
Reference in New Issue
Block a user