UI changes (now responsive) && fixed YT recommendations method
This commit is contained in:
@@ -47,7 +47,7 @@ class Queue {
|
||||
}
|
||||
|
||||
get upNext() {
|
||||
if (this.currentSongs.length === 0 && this.currentPosition >= this.currentSongs.length) return null
|
||||
if (this.currentSongs.length === 0 || this.currentPosition >= this.currentSongs.length) return null
|
||||
|
||||
return this.currentSongs[this.currentPosition + 1]
|
||||
}
|
||||
@@ -85,6 +85,11 @@ class Queue {
|
||||
this.updateQueue()
|
||||
}
|
||||
|
||||
/** Re-orders the queue if shuffled, shuffles if not */
|
||||
public toggleShuffle() {
|
||||
this.shuffled ? this.reorder() : this.shuffle()
|
||||
}
|
||||
|
||||
/** Starts the next song */
|
||||
public next() {
|
||||
if (this.currentSongs.length === 0 || this.currentSongs.length <= this.currentPosition + 1) return
|
||||
|
||||
Reference in New Issue
Block a user