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>({