diff options
author | Tor Andersson <tor@ccxvii.net> | 2023-05-18 14:33:26 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-05-18 14:33:26 +0200 |
commit | 5bab9e5fc96ba8b7f5d9f329fd56b8811852fcea (patch) | |
tree | 193a16018afdb8e8ab12d0fde0aa0018b7a87e92 /public | |
parent | cfb933b598c2c015b41b16051c0d9da2bc985cc0 (diff) | |
download | server-5bab9e5fc96ba8b7f5d9f329fd56b8811852fcea.tar.gz |
Remove support for old game parameter format.
Diffstat (limited to 'public')
-rw-r--r-- | public/common/play.js | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/public/common/play.js b/public/common/play.js index ba8c647..6c471ba 100644 --- a/public/common/play.js +++ b/public/common/play.js @@ -8,13 +8,6 @@ let params = { } function init_params() { - // Support old format during transition - if (/\/[\w-]+\/(replay|play|debug):\d+(:[\w-]+)?/.test(window.location.pathname)) { - params.mode = window.location.pathname.split("/")[2].split(":")[0] - params.game_id = decodeURIComponent(window.location.pathname.split("/")[2]).split(":")[1] | 0 - params.role = decodeURIComponent(window.location.pathname.split("/")[2]).split(":")[2] || "Observer" - return - } let search = new URLSearchParams(window.location.search) params.game_id = search.get("game") params.role = search.get("role") || "Observer" |