From 740c6314fba30600b940bb5316b4e7ac2a222323 Mon Sep 17 00:00:00 2001 From: Wolfboy248 <121288977+Wolfboy248@users.noreply.github.com> Date: Thu, 11 Jul 2024 21:23:32 +0200 Subject: feat: improve maplist url (#183) --- frontend/src/components/pages/maplist.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'frontend/src/components/pages/maplist.js') diff --git a/frontend/src/components/pages/maplist.js b/frontend/src/components/pages/maplist.js index f4041a2..a7464e9 100644 --- a/frontend/src/components/pages/maplist.js +++ b/frontend/src/components/pages/maplist.js @@ -31,7 +31,7 @@ export default function Maplist(prop) { const url = new URL(window.location.href) const params = new URLSearchParams(url.search) - gameState = parseFloat(params.get("game")) + gameState = parseFloat(location.pathname.split("/")[2]) document.querySelector("#catPortalCount").innerText = data.data[gameState - 1].category_portals[0].portal_count; -- cgit v1.2.3