summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--play.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/play.js b/play.js
index 16bc072..a1e2313 100644
--- a/play.js
+++ b/play.js
@@ -369,7 +369,7 @@ function focus_stack(stack) {
if (focus !== stack) {
focus = stack
update_map()
- return stack.length <= 1
+ return !stack || stack.length <= 1
}
return true
}