summaryrefslogtreecommitdiff
path: root/public
diff options
context:
space:
mode:
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() {