From 7849b8af2230faf0e79e4c65e740ea80bdda4998 Mon Sep 17 00:00:00 2001 From: Stefan Zerkalica Date: Thu, 7 Nov 2024 01:38:52 +0300 Subject: [PATCH] $mol_notify fixes --- notify/notify.ts | 10 +--------- service/worker/worker.ts | 2 +- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/notify/notify.ts b/notify/notify.ts index 99999e9634..555bc74d78 100644 --- a/notify/notify.ts +++ b/notify/notify.ts @@ -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) {} } diff --git a/service/worker/worker.ts b/service/worker/worker.ts index 3ea5231d88..3ea292ea69 100644 --- a/service/worker/worker.ts +++ b/service/worker/worker.ts @@ -11,7 +11,7 @@ namespace $ { } @ $mol_mem - protected static rpc() { + static rpc() { $mol_wire_solid() const rpc = this.$.$mol_rpc_client.make>({