diff --git a/astro/public/scripts/sound.js b/astro/public/scripts/sound.js index 88a2c8d..ca8b749 100644 --- a/astro/public/scripts/sound.js +++ b/astro/public/scripts/sound.js @@ -1,11 +1,11 @@ // Sound effects function PlaySound(soundobj) { - var thissound = document.getElementById(soundobj); + const thissound = document.getElementById(soundobj); thissound.play(); } function StopSound(soundobj) { - var thissound = document.getElementById(soundobj); + const thissound = document.getElementById(soundobj); thissound.pause(); thissound.currentTime = 0; }