diff options
author | Florrie <towerofnix@gmail.com> | 2020-02-15 22:27:45 -0400 |
---|---|---|
committer | Florrie <towerofnix@gmail.com> | 2020-02-15 22:27:45 -0400 |
commit | 2b671919525596b8afe1bdd442a562183a054398 (patch) | |
tree | ba7e47bbd6b67308dd018faad84a5f51ba0e7bce | |
parent | 48ed5168d477fe11fe4f21ae104e3750935b0943 (diff) |
whoops
-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`); } |