Skip to content

Commit

Permalink
fix(sw): プッシュ通知の操作でZen UIなクライアントが開かれてしまう場合がある問題を修正 (#10497) (#10498)
Browse files Browse the repository at this point in the history
  • Loading branch information
okayurisotto authored Apr 7, 2023
1 parent 58c8d21 commit 69828e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/sw/src/scripts/operations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

0 comments on commit 69828e8

Please sign in to comment.