Skip to content

Commit

Permalink
$mol_service_worker type fix
Browse files Browse the repository at this point in the history
  • Loading branch information
zerkalica committed Nov 3, 2024
1 parent 1efed9b commit 7f008e6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion service/prompt/prompt.web.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ namespace $ {
this.event()
return next ?? null
}
platforms() { return this.native.platforms }

constructor(readonly native: BeforeInstallEvent) { super() }

Expand Down
2 changes: 1 addition & 1 deletion service/worker/worker.web.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ namespace $ {
@ $mol_action
static clients_grab<Query extends ClientQueryOptions>(query?: Query) {
return this.clients().matchAll(query)
.map(client => this.client(client.id, client as Query extends 'window' ? WindowClient : Client)!)
.map(client => this.client(client.id, client as Query['type'] extends 'window' ? WindowClient : Client)!)
}

static window_open(url: string | URL) {
Expand Down

0 comments on commit 7f008e6

Please sign in to comment.