diff options
| author | okayurisotto <aytkzm@gmail.com> | 2023-04-07 15:48:49 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-07 15:48:49 +0900 |
| commit | 69828e8dac5b18ab2af6cc13a46f48255e9de789 (patch) | |
| tree | 92aa5f7ec21ba1ddee43e376b8df123ef3d61d79 /packages/sw/src/scripts | |
| parent | 13.11.0-beta.5 (diff) | |
| download | sharkey-69828e8dac5b18ab2af6cc13a46f48255e9de789.tar.gz sharkey-69828e8dac5b18ab2af6cc13a46f48255e9de789.tar.bz2 sharkey-69828e8dac5b18ab2af6cc13a46f48255e9de789.zip | |
fix(sw): プッシュ通知の操作でZen UIなクライアントが開かれてしまう場合がある問題を修正 (#10497) (#10498)
Diffstat (limited to 'packages/sw/src/scripts')
| -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; } |