summaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2023-04-07 18:12:27 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2023-04-07 18:12:27 +0900
commit930724f9de5e4f686bf3265e718e3840539c6cf5 (patch)
tree06ed27d8985eadeb39703b6c478491ec4462f3c5 /packages
parentperf(backend): improve cache of instance of user (diff)
parentfix(sw): プッシュ通知の操作でZen UIなクライアントが開か... (diff)
downloadmisskey-930724f9de5e4f686bf3265e718e3840539c6cf5.tar.gz
misskey-930724f9de5e4f686bf3265e718e3840539c6cf5.tar.bz2
misskey-930724f9de5e4f686bf3265e718e3840539c6cf5.zip
Merge branch 'develop' of https://github.com/misskey-dev/misskey into develop
Diffstat (limited to 'packages')
-rw-r--r--packages/sw/src/scripts/operations.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/sw/src/scripts/operations.ts b/packages/sw/src/scripts/operations.ts
index 8936a7763a..02217ed74e 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;
}