diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2023-04-07 18:12:27 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2023-04-07 18:12:27 +0900 |
| commit | 930724f9de5e4f686bf3265e718e3840539c6cf5 (patch) | |
| tree | 06ed27d8985eadeb39703b6c478491ec4462f3c5 /packages | |
| parent | perf(backend): improve cache of instance of user (diff) | |
| parent | fix(sw): プッシュ通知の操作でZen UIなクライアントが開か... (diff) | |
| download | misskey-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.ts | 2 |
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; } |