diff options
| author | Wolfboy248 <121288977+Wolfboy248@users.noreply.github.com> | 2024-07-11 21:23:32 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-11 22:23:32 +0300 |
| commit | 740c6314fba30600b940bb5316b4e7ac2a222323 (patch) | |
| tree | 606f680162932f2624b5ab55c10ad4a7f29d4a7d /frontend/src/components/pages/maplist.js | |
| parent | docs: add missing nosla/sla history (#185) (diff) | |
| download | lphub-740c6314fba30600b940bb5316b4e7ac2a222323.tar.gz lphub-740c6314fba30600b940bb5316b4e7ac2a222323.tar.bz2 lphub-740c6314fba30600b940bb5316b4e7ac2a222323.zip | |
feat: improve maplist url (#183)
Diffstat (limited to '')
| -rw-r--r-- | frontend/src/components/pages/maplist.js | 2 |
1 files changed, 1 insertions, 1 deletions
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) { | |||
| 31 | const url = new URL(window.location.href) | 31 | const url = new URL(window.location.href) |
| 32 | 32 | ||
| 33 | const params = new URLSearchParams(url.search) | 33 | const params = new URLSearchParams(url.search) |
| 34 | gameState = parseFloat(params.get("game")) | 34 | gameState = parseFloat(location.pathname.split("/")[2]) |
| 35 | 35 | ||
| 36 | document.querySelector("#catPortalCount").innerText = data.data[gameState - 1].category_portals[0].portal_count; | 36 | document.querySelector("#catPortalCount").innerText = data.data[gameState - 1].category_portals[0].portal_count; |
| 37 | 37 | ||