From 2b671919525596b8afe1bdd442a562183a054398 Mon Sep 17 00:00:00 2001 From: Florrie Date: Sat, 15 Feb 2020 22:27:45 -0400 Subject: whoops --- backend.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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`); } -- cgit 1.3.0-6-gf8a5