From 370372a26e4b7046a887d634e8be1fd88fb1897a Mon Sep 17 00:00:00 2001 From: Stefan Zerkalica Date: Wed, 6 Nov 2024 12:14:27 +0300 Subject: [PATCH] $mol_service fixes 2 --- service/plugin/plugin.ts | 4 ++-- service/worker/worker.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/service/plugin/plugin.ts b/service/plugin/plugin.ts index 97ef4ce0c5..f25bb8d3f2 100644 --- a/service/plugin/plugin.ts +++ b/service/plugin/plugin.ts @@ -1,8 +1,8 @@ namespace $ { if ( $mol_service_process() ) { - Promise.resolve().then(() => $.$mol_service_self.init()) + Promise.resolve().then(() => $mol_service_self.init()) } else { - $.$mol_service_worker.init() + $mol_service_worker.init() } export namespace $mol_service_plugin { diff --git a/service/worker/worker.ts b/service/worker/worker.ts index 12699a6a28..e681dd1ee9 100644 --- a/service/worker/worker.ts +++ b/service/worker/worker.ts @@ -13,7 +13,7 @@ namespace $ { try { this.state() } catch (error) { - if ($mol_fail_catch(error)) { + if (! $mol_promise_like(error)) { console.error(error) } }