Skip to content

Commit

Permalink
$mol_service_prompt moved to offline, refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
zerkalica committed Nov 3, 2024
1 parent 2169769 commit 2265c73
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions offline/offline.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace $ {

@ $mol_mem
static prompt() {
this.$.$mol_service_prompt.last()?.prompt()
this.$.$mol_offline_prompt.last()?.prompt()
}

static override blocked( request: Request ) {
Expand Down Expand Up @@ -68,7 +68,7 @@ namespace $ {
}
}

$mol_offline.prompt()
new $mol_after_tick(() => $mol_offline.prompt())

export namespace $mol_service_plugin {
export let $mol_offline = $.$mol_offline
Expand Down
6 changes: 3 additions & 3 deletions service/prompt/prompt.web.ts → offline/prompt/prompt.web.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ namespace $ {
}>
}

export class $mol_service_prompt extends $mol_object {
export class $mol_offline_prompt extends $mol_object {
@ $mol_mem
protected static event() {
const install = (event: Event) => {
this.last(new this.$.$mol_service_prompt(event as BeforeInstallEvent))
this.last(new this.$.$mol_offline_prompt(event as BeforeInstallEvent))
}

const win = this.$.$mol_dom_context
Expand All @@ -24,7 +24,7 @@ namespace $ {
}

@ $mol_mem
static last(next?: $mol_service_prompt) {
static last(next?: $mol_offline_prompt) {
this.event()
return next ?? null
}
Expand Down

0 comments on commit 2265c73

Please sign in to comment.