Skip to content

Commit

Permalink
$mol_offline web
Browse files Browse the repository at this point in the history
  • Loading branch information
zerkalica committed Nov 3, 2024
1 parent 2265c73 commit 9dafc68
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
7 changes: 0 additions & 7 deletions offline/offline.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,6 @@ namespace $ {
'//cse.google.com/adsense/search/async-ads.js'
]

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

static override blocked( request: Request ) {
const normalized_url = request.url.replace( /^https?:/, '' )

Expand Down Expand Up @@ -68,8 +63,6 @@ namespace $ {
}
}

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

export namespace $mol_service_plugin {
export let $mol_offline = $.$mol_offline
}
Expand Down
13 changes: 13 additions & 0 deletions offline/offline.web.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
namespace $ {
export class $mol_offline_web extends $mol_offline {
@ $mol_mem
static prompt() {
this.$.$mol_offline_prompt.last()?.prompt()
}
}

$.$mol_offline = $mol_offline_web
$mol_service_plugin.$mol_offline = $.$mol_offline_web

new $mol_after_tick(() => $mol_offline_web.prompt())
}

0 comments on commit 9dafc68

Please sign in to comment.