refactor(sw): self => globalThis
This commit is contained in:
parent
0f546b47d1
commit
36170a11f5
3 changed files with 13 additions and 13 deletions
|
|
@ -51,11 +51,11 @@ export async function openClient(order: swMessageOrderType, url: string, loginId
|
|||
return client;
|
||||
}
|
||||
|
||||
return self.clients.openWindow(getUrlWithLoginId(url, loginId));
|
||||
return globalThis.clients.openWindow(getUrlWithLoginId(url, loginId));
|
||||
}
|
||||
|
||||
export async function findClient() {
|
||||
const clients = await self.clients.matchAll({
|
||||
const clients = await globalThis.clients.matchAll({
|
||||
type: 'window',
|
||||
});
|
||||
for (const c of clients) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue