From b0a7efabbfedc409272ecbee357baa398fd50de5 Mon Sep 17 00:00:00 2001 From: Bye <bye@byecorps.com> Date: Sat, 5 Apr 2025 19:56:52 +0100 Subject: [PATCH] BUGFIX: if preventAutoPlay is true, don't play the loading sound. --- waves/src/waves.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/waves/src/waves.js b/waves/src/waves.js index c724c48..432fec2 100644 --- a/waves/src/waves.js +++ b/waves/src/waves.js @@ -103,7 +103,7 @@ class Waves extends EventTarget { setStation(station, preventAutoPlay=false) { this.currentStation.stop(); - this.loadingSound.play(); + if (!preventAutoPlay) this.loadingSound.play(); if (!this.stations[station]) { throw ReferenceError("Station not found."); -- GitLab