« get me outta code hell

mtui - Music Text User Interface - user-friendly command line music player
about summary refs log tree commit diff
diff options
context:
space:
mode:
-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`);
     }