add mpdscribble support for love button

This commit is contained in:
SuperBFG7 2021-06-17 10:07:52 +02:00
parent 8669750a4b
commit ebf5b3894d
1 changed files with 4 additions and 0 deletions

View File

@ -1085,6 +1085,10 @@ function clickLove() {
'MPD_API_SEND_MESSAGE,mpdas,' +
($('#btnlove').hasClass('active') ? 'unlove' : 'love')
);
socket.send(
'MPD_API_SEND_MESSAGE,mpdscribble,' +
($('#btnlove').hasClass('active') ? 'unlove' : 'love')
);
if ($('#btnlove').hasClass('active')) $('#btnlove').removeClass('active');
else $('#btnlove').addClass('active');
}