diff options
author | Tor Andersson <tor@ccxvii.net> | 2021-07-16 15:11:21 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2021-07-16 15:11:21 +0200 |
commit | 594f10cebf033b7ca33268cf794b5f1c370c7daf (patch) | |
tree | c83e1acca8513bdc42efd749a18438e5a19b0871 /public | |
parent | f8aaf2a6f573b15777601c38513d9a7c869f1462 (diff) | |
download | server-594f10cebf033b7ca33268cf794b5f1c370c7daf.tar.gz |
Automatically join rematches as the old role.
Diffstat (limited to 'public')
-rw-r--r-- | public/common/client.js | 3 |
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() { |