From 594f10cebf033b7ca33268cf794b5f1c370c7daf Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Fri, 16 Jul 2021 15:11:21 +0200 Subject: Automatically join rematches as the old role. --- public/common/client.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'public') 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() { -- cgit v1.2.3