summaryrefslogtreecommitdiff
path: root/public
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2021-07-16 15:11:21 +0200
committerTor Andersson <tor@ccxvii.net>2021-07-16 15:11:21 +0200
commit594f10cebf033b7ca33268cf794b5f1c370c7daf (patch)
treec83e1acca8513bdc42efd749a18438e5a19b0871 /public
parentf8aaf2a6f573b15777601c38513d9a7c869f1462 (diff)
downloadserver-594f10cebf033b7ca33268cf794b5f1c370c7daf.tar.gz
Automatically join rematches as the old role.
Diffstat (limited to 'public')
-rw-r--r--public/common/client.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/public/common/client.js b/public/common/client.js
index 1416e10..d7faa3c 100644
--- a/public/common/client.js
+++ b/public/common/client.js
@@ -489,7 +489,8 @@ function on_game_over() {
function send_rematch() {
let params = new URLSearchParams(window.location.search);
let game_id = params.get("game");
- window.location = '/rematch/' + game_id;
+ let role_id = params.get("role");
+ window.location = '/rematch/' + game_id + '/' + role_id;
}
function send_exit() {