If the mpd frontend receives an empty PlaylistChangeEvent, trigger an initPlaylist to update the playlist

This commit is contained in:
Fabio Manganiello 2019-01-10 22:27:44 +01:00
parent a190184b0c
commit 0bbfaf4498

View file

@ -231,6 +231,7 @@ $(document).ready(function() {
var updatePlaylist = function(tracks) { var updatePlaylist = function(tracks) {
if (tracks == null) { if (tracks == null) {
initPlaylist();
return; return;
} }