2
0
Эх сурвалжийг харах

Tweaked next/after song logic.

Kris 9 жил өмнө
parent
commit
61602188d6
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  1. 1 1
      app/app.js

+ 1 - 1
app/app.js

@@ -483,7 +483,7 @@ if (Meteor.isClient) {
                                 if (index + 2 < songs.length) {
                                     console.log("OOO 1");
                                     afterSong = songs[index + 2];
-                                } else if (songs.length === index + 1) {
+                                } else if (songs.length === index + 1 && songs.length > 1 ) {
                                     afterSong = songs[1];
                                 } else {
                                     afterSong = songs[0];