Browse Source

allow spaces in player name

Christian Herzog 5 năm trước cách đây
mục cha
commit
71f9f82270
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      components/wifi-manager/code.js

+ 1 - 1
components/wifi-manager/code.js

@@ -343,7 +343,7 @@ $(document).ready(function(){
     });
 
     $("#generate-command").on("click", function() {
-        var commandLine = commandHeader + '-n ' + $("#player").val();
+        var commandLine = commandHeader + '-n "' + $("#player").val() + '"';
 
         if (output == 'bt') {
             commandLine += ' -o "BT -n \'' + $("#btsink").val() + '\'" -R -Z 192000';