add mpdscribble support for love button
authorSuperBFG7 <daniel@despite.ch>
Thu, 17 Jun 2021 08:07:52 +0000 (10:07 +0200)
committerSuperBFG7 <daniel@despite.ch>
Thu, 17 Jun 2021 08:07:52 +0000 (10:07 +0200)
htdocs/js/mpd.js

index 73d4ba5..1f62534 100644 (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');
 }