Explorar o código

Tweaked next/after song logic.

Kris %!s(int64=9) %!d(string=hai) anos
pai
achega
61602188d6
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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];