diff --git a/public/assets/sounds/button-click.wav b/public/assets/sounds/button-click.wav new file mode 100644 index 0000000..2b17b0e Binary files /dev/null and b/public/assets/sounds/button-click.wav differ diff --git a/public/assets/sounds/click-btn.mp3 b/public/assets/sounds/click-btn.mp3 deleted file mode 100644 index 6ef1729..0000000 Binary files a/public/assets/sounds/click-btn.mp3 and /dev/null differ diff --git a/src/App.vue b/src/App.vue index 15df037..46787aa 100644 --- a/src/App.vue +++ b/src/App.vue @@ -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() })