diff options
author | Tor Andersson <tor@ccxvii.net> | 2025-02-01 11:57:24 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2025-02-01 11:57:36 +0100 |
commit | 3603389389172394a6af7e72b49df58e2feee7bf (patch) | |
tree | 78ebe0a237a08d9364fe4e5a422173db62834e10 | |
parent | 4b63dd6d32c4b195a0ded4705c4da4d5b1c83f9e (diff) | |
download | server-3603389389172394a6af7e72b49df58e2feee7bf.tar.gz |
Disable resigning from 3p+ games.
-rw-r--r-- | public/common/client.js | 2 |
1 files changed, 1 insertions, 1 deletions
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", '<li class="resign separator">') popup.insertAdjacentHTML("beforeend", '<li class="resign" onclick="confirm_resign()">Resign') |