Sfoglia il codice sorgente

Try variable number of command line arguments

Foppe Hemminga 6 anni fa
parent
commit
aec798aba3
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      index.php

+ 1 - 1
index.php

@@ -56,7 +56,7 @@
     let _debug = false;
     function log(...text) {
         if (_debug) {
-            return console.log(text.join(','));
+            return console.log(...text);
         }
     }
 </script>