« get me outta code hell

whoops - mtui - Music Text User Interface - user-friendly command line music player
about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFlorrie <towerofnix@gmail.com>2020-02-15 22:27:45 -0400
committerFlorrie <towerofnix@gmail.com>2020-02-15 22:27:45 -0400
commit2b671919525596b8afe1bdd442a562183a054398 (patch)
treeba7e47bbd6b67308dd018faad84a5f51ba0e7bce
parent48ed5168d477fe11fe4f21ae104e3750935b0943 (diff)
whoops
-rw-r--r--backend.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/backend.js b/backend.js
index 0cceeea..d3ad122 100644
--- a/backend.js
+++ b/backend.js
@@ -571,7 +571,7 @@ class Backend extends EventEmitter {
     this.playerName = playerName;
     this.playerOptions = playerOptions;
 
-    if (playerOptions && !playerName) {
+    if (playerOptions.length && !playerName) {
       throw new Error(`Must specify playerName to specify playerOptions`);
     }