Skip to content

Commit

Permalink
$mol_service fix inner namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
zerkalica committed Oct 30, 2024
1 parent 02d8dcc commit 7f7ce8d
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 8 deletions.
2 changes: 1 addition & 1 deletion notify/notify.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ namespace $ {

}

$mol_service.$mol_notify_service
$mol_notify_service

}
2 changes: 1 addition & 1 deletion notify/service/service.ts
Original file line number Diff line number Diff line change
@@ -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) {
Expand Down
8 changes: 6 additions & 2 deletions notify/service/service.web.ts
Original file line number Diff line number Diff line change
@@ -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()
Expand Down Expand Up @@ -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
}
}
2 changes: 1 addition & 1 deletion offline/install/install.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
namespace $ {
$.$mol_service.$mol_offline
$.$mol_offline
}
2 changes: 1 addition & 1 deletion offline/offline.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace $.$mol_service {
namespace $ {

export class $mol_offline extends $mol_service_plugin {
static blocked_urls = [
Expand Down
9 changes: 7 additions & 2 deletions offline/offline.web.ts
Original file line number Diff line number Diff line change
@@ -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
}

}

0 comments on commit 7f7ce8d

Please sign in to comment.