From 69828e8dac5b18ab2af6cc13a46f48255e9de789 Mon Sep 17 00:00:00 2001 From: okayurisotto Date: Fri, 7 Apr 2023 15:48:49 +0900 Subject: [PATCH] =?UTF-8?q?fix(sw):=20=E3=83=97=E3=83=83=E3=82=B7=E3=83=A5?= =?UTF-8?q?=E9=80=9A=E7=9F=A5=E3=81=AE=E6=93=8D=E4=BD=9C=E3=81=A7Zen=20UI?= =?UTF-8?q?=E3=81=AA=E3=82=AF=E3=83=A9=E3=82=A4=E3=82=A2=E3=83=B3=E3=83=88?= =?UTF-8?q?=E3=81=8C=E9=96=8B=E3=81=8B=E3=82=8C=E3=81=A6=E3=81=97=E3=81=BE?= =?UTF-8?q?=E3=81=86=E5=A0=B4=E5=90=88=E3=81=8C=E3=81=82=E3=82=8B=E5=95=8F?= =?UTF-8?q?=E9=A1=8C=E3=82=92=E4=BF=AE=E6=AD=A3=20(#10497)=20(#10498)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/sw/src/scripts/operations.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/sw/src/scripts/operations.ts b/packages/sw/src/scripts/operations.ts index 8936a7763..02217ed74 100644 --- a/packages/sw/src/scripts/operations.ts +++ b/packages/sw/src/scripts/operations.ts @@ -59,7 +59,7 @@ export async function findClient() { type: 'window', }); for (const c of clients) { - if (c.url.indexOf('?zen') < 0) return c; + if (!new URL(c.url).searchParams.has('zen')) return c; } return null; }