diff --git a/script.js b/script.js index f92ed7f..4c9f216 100644 --- a/script.js +++ b/script.js @@ -2,6 +2,10 @@ const audioFiles = { rain: new Audio('audio/rain.mp3'), }; +for (const audio in audioFiles) { + audioFiles[audio].loop = true; +} + function toggleSound() { if (!playing) { for (const audio in audioFiles) {