Skip to content

Commit

Permalink
$mol_notify fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
zerkalica committed Nov 6, 2024
1 parent a33dcaf commit 7849b8a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
10 changes: 1 addition & 9 deletions notify/notify.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,12 @@ namespace $ {
}

static show( info: $mol_notify_info ) {
this.$.$mol_service_worker.send(info)
this.$.$mol_service_worker.rpc().$mol_notify_service.show(info)
}

}

export class $mol_notify_service extends $mol_service_plugin_notify {
static override data(data: {}) {
if ('uri' in data && 'message' in data) {
this.show(data as $mol_notify_info)
return true
}
return null
}

static show(info: $mol_notify_info) {}

}
Expand Down
2 changes: 1 addition & 1 deletion service/worker/worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ namespace $ {
}

@ $mol_mem
protected static rpc() {
static rpc() {
$mol_wire_solid()

const rpc = this.$.$mol_rpc_client.make<typeof $mol_rpc_client<{}>>({
Expand Down

0 comments on commit 7849b8a

Please sign in to comment.