summaryrefslogtreecommitdiff
path: root/public
diff options
context:
space:
mode:
Diffstat (limited to 'public')
-rw-r--r--public/common/client.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/public/common/client.js b/public/common/client.js
index ccc9718..dd3c6bf 100644
--- a/public/common/client.js
+++ b/public/common/client.js
@@ -9,8 +9,8 @@ if (!/\/[\w-]+\/play:\d+(:[\w-]+)?/.test(window.location.pathname)) {
}
const param_title_id = window.location.pathname.split("/")[1];
-const param_game_id = window.location.pathname.split("/")[2].split(":")[1] | 0;
-const param_role = window.location.pathname.split("/")[2].split(":")[2] || "Observer";
+const param_game_id = decodeURIComponent(window.location.pathname.split("/")[2]).split(":")[1] | 0;
+const param_role = decodeURIComponent(window.location.pathname.split("/")[2]).split(":")[2] || "Observer";
let game = null;
let game_over = false;