From 5bab9e5fc96ba8b7f5d9f329fd56b8811852fcea Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Thu, 18 May 2023 14:33:26 +0200 Subject: Remove support for old game parameter format. --- public/common/play.js | 7 ------- 1 file changed, 7 deletions(-) (limited to 'public') 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" -- cgit v1.2.3