Skip to content
Snippets Groups Projects
Commit b0a7efab authored by Bye's avatar Bye
Browse files

BUGFIX: if preventAutoPlay is true, don't play the loading sound.

parent fb86c6de
Branches
Tags
No related merge requests found
......@@ -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.");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment