diff --git a/notify/notify.ts b/notify/notify.ts index ab8284fac6..fe860cb306 100644 --- a/notify/notify.ts +++ b/notify/notify.ts @@ -19,6 +19,6 @@ namespace $ { } - $mol_service.$mol_notify_service + $mol_notify_service } diff --git a/notify/service/service.ts b/notify/service/service.ts index 330742fc79..215e984042 100644 --- a/notify/service/service.ts +++ b/notify/service/service.ts @@ -1,4 +1,4 @@ -namespace $.$mol_service { +namespace $ { export class $mol_notify_service extends $mol_service_plugin { static override message_data(data: {}) { if ('uri' in data && 'message' in data) { diff --git a/notify/service/service.web.ts b/notify/service/service.web.ts index b1e1afa79b..d756678fef 100644 --- a/notify/service/service.web.ts +++ b/notify/service/service.web.ts @@ -1,4 +1,4 @@ -namespace $.$mol_service { +namespace $ { export class $mol_notify_service_web extends $mol_notify_service { static override init() { const worker = this.$.$mol_service_host_web.worker() @@ -45,5 +45,9 @@ namespace $.$mol_service { } } - $.$mol_service.$mol_notify_service = $mol_notify_service_web + $.$mol_notify_service = $mol_notify_service_web + + export namespace $mol_service { + export const $mol_notify_service = $mol_notify_service_web + } } diff --git a/offline/install/install.ts b/offline/install/install.ts index 321c548734..79e40bb783 100644 --- a/offline/install/install.ts +++ b/offline/install/install.ts @@ -1,3 +1,3 @@ namespace $ { - $.$mol_service.$mol_offline + $.$mol_offline } diff --git a/offline/offline.ts b/offline/offline.ts index 7f7ba4a375..35942f3dee 100644 --- a/offline/offline.ts +++ b/offline/offline.ts @@ -1,4 +1,4 @@ -namespace $.$mol_service { +namespace $ { export class $mol_offline extends $mol_service_plugin { static blocked_urls = [ diff --git a/offline/offline.web.ts b/offline/offline.web.ts index 41d4967087..39e29e842c 100644 --- a/offline/offline.web.ts +++ b/offline/offline.web.ts @@ -1,9 +1,14 @@ -namespace $.$mol_service { +namespace $ { export class $mol_offline_web extends $mol_offline { protected static override fetch(request: Request) { return fetch(request) } } - $.$mol_service.$mol_offline = $mol_offline_web + $.$mol_offline = $mol_offline_web + + export namespace $mol_service { + export const $mol_offline = $mol_offline_web + } + }