From ebf5b3894d1f52de861836c2ac9cc20fef705d8c Mon Sep 17 00:00:00 2001 From: SuperBFG7 Date: Thu, 17 Jun 2021 10:07:52 +0200 Subject: [PATCH] add mpdscribble support for love button --- htdocs/js/mpd.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/htdocs/js/mpd.js b/htdocs/js/mpd.js index 73d4ba5..1f62534 100644 --- a/htdocs/js/mpd.js +++ b/htdocs/js/mpd.js @@ -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'); } -- 2.20.1