diff options
-rw-r--r-- | backend.js | 2 |
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`); } |