From a6c8e710af51be01bc8e40fd9a0a294678837a8e Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sat, 1 Oct 2022 17:52:47 +0200 Subject: Add menu to jump to the next active game. --- public/common/play.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'public') diff --git a/public/common/play.js b/public/common/play.js index ba59d6f..2fe3e2e 100644 --- a/public/common/play.js +++ b/public/common/play.js @@ -1011,4 +1011,9 @@ function add_main_menu_item(text, onclick) { } init_main_menu() -add_main_menu_item("Go Home", () => window.open("/games/active", "_self")) +if (params.role !== "Observer") { + add_main_menu_item("Go home", () => window.open("/games/active", "_self")) + add_main_menu_item("Go to next game", () => window.open("/games/next", "_self")) +} else { + add_main_menu_item("Go home", () => window.open("/", "_self")) +} -- cgit v1.2.3