From 3603389389172394a6af7e72b49df58e2feee7bf Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sat, 1 Feb 2025 11:57:24 +0100 Subject: Disable resigning from 3p+ games. --- public/common/client.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/common/client.js b/public/common/client.js index 3bc8aff..1b45cf8 100644 --- a/public/common/client.js +++ b/public/common/client.js @@ -766,7 +766,7 @@ function confirm_resign() { } function add_resign_menu() { - if (Object.keys(roles).length > 1) { + if (Object.keys(roles).length === 2) { let popup = document.querySelector("#toolbar details menu") popup.insertAdjacentHTML("beforeend", '
  • ') popup.insertAdjacentHTML("beforeend", '
  • Resign') -- cgit v1.2.3