From f5080c84192b3e3a570c246ba7b19d05e2cb5972 Mon Sep 17 00:00:00 2001 From: SuperBFG7 Date: Thu, 29 Jul 2021 11:57:55 +0200 Subject: [PATCH] linting --- htdocs/js/mpd.js | 24 +++++++++++++++++------- 1 file changed, 17 insertions(+), 7 deletions(-) diff --git a/htdocs/js/mpd.js b/htdocs/js/mpd.js index b6d80d0..663745a 100644 --- a/htdocs/js/mpd.js +++ b/htdocs/js/mpd.js @@ -103,7 +103,11 @@ var app = $.sammy(function () { full_path = full_path + chunk; $('#breadcrump').append( - '
  • ' + chunk + '
  • ' + '
  • ' + + chunk + + '
  • ' ); full_path += '/'; }); @@ -444,9 +448,9 @@ function webSocketConnect() { /* The use of encodeURIComponent() below might seem useless, but it's not. It prevents * some browsers, such as Safari, from changing the normalization form of the * URI from NFD to NFC, breaking our link with MPD. - * - * encodeURIComponent() instead of encodeURI() is used to ensure special characters - * (like e.g. +) are handled correctly. + * + * encodeURIComponent() instead of encodeURI() is used to ensure special characters + * (like e.g. +) are handled correctly. */ if ($('#salamisandwich > tbody').is(':ui-sortable')) { $('#salamisandwich > tbody').sortable('destroy'); @@ -489,7 +493,9 @@ function webSocketConnect() { } $('#salamisandwich > tbody').append( '' + @@ -667,7 +673,9 @@ function webSocketConnect() { case 'song': socket.send( 'MPD_API_ADD_TRACK,' + - decodeURIComponent($(this).attr('uri')) + decodeURIComponent( + $(this).attr('uri') + ) ); $('.top-right') .notify({ @@ -686,7 +694,9 @@ function webSocketConnect() { case 'plist': socket.send( 'MPD_API_ADD_PLAYLIST,' + - decodeURIComponent($(this).attr('uri')) + decodeURIComponent( + $(this).attr('uri') + ) ); $('.top-right') .notify({ -- 2.20.1