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) } }