From bd0e7a52ad8e4f431d7666576a3581ea32a13fbd Mon Sep 17 00:00:00 2001 From: awnlzw Date: Sun, 21 Apr 2024 10:25:23 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dissue=20#1247:=20=E4=BD=BF?= =?UTF-8?q?=E7=94=A8=E5=8F=8D=E5=90=91=E4=BB=A3=E7=90=86=E6=9C=89=E5=AD=90?= =?UTF-8?q?=E8=B7=AF=E5=BE=84=E6=97=B6=EF=BC=8CserviceWorker=E7=9A=84scope?= =?UTF-8?q?=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- game/game.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/game/game.js b/game/game.js index b682ef2f2..48eb3c44b 100644 --- a/game/game.js +++ b/game/game.js @@ -244,7 +244,7 @@ new Promise((resolve) => { "serviceWorker" in navigator ) { let scope = - window.location.protocol + "//" + window.location.host + "/"; + window.location.protocol + "//" + window.location.host + window.location.pathname; navigator.serviceWorker .getRegistrations() .then(async (registrations) => {