From 979cc396873b57104bd80718ccfd5044e71daffb Mon Sep 17 00:00:00 2001 From: pipeline-agent Date: Sun, 30 Aug 2026 10:34:01 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20base()=E5=8E=BB=E5=B0=BE=E9=83=A8?= =?UTF-8?q?=E6=96=9C=E6=9D=A0=E9=98=B2=E5=8F=8C=E6=96=9C=E6=9D=A0URL?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- wwwroot/game_list.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wwwroot/game_list.js b/wwwroot/game_list.js index 70d81f5..a6e77e1 100644 --- a/wwwroot/game_list.js +++ b/wwwroot/game_list.js @@ -9,7 +9,8 @@ window.scenseGameList = (function () { } function base() { - return window.location.pathname.replace(/\/game\/.*$/, ''); + var p = window.location.pathname.replace(/\/game\/.*$/, ''); + return p.replace(/\/+$/, ''); } function statusText(s) {