-
-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
$mol_service separate worker plugins, fixes
- Loading branch information
Showing
7 changed files
with
107 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,20 @@ | ||
namespace $ { | ||
export class $mol_service_plugin extends $mol_object { | ||
static init() {} | ||
static prepare(event: $mol_service_prepare_event) { return null as null | undefined | boolean } | ||
static install() { return null as undefined | null | Promise<unknown> } | ||
static activate() { return null as undefined | null | Promise<unknown> } | ||
static state_change() {} | ||
static message_data(data: {}) { return null as null | undefined | Promise<unknown> } | ||
|
||
static service() { return this.$.$mol_service_worker } | ||
} | ||
|
||
export class $mol_service_plugin_cache extends $mol_service_plugin { | ||
static blocked(request: Request) { return false } | ||
static modify(request: Request, waitUntil: (promise: Promise<unknown>) => void) { | ||
return null as null | Response | PromiseLike<Response> | ||
} | ||
} | ||
|
||
static service() { return this.$.$mol_service_worker } | ||
export class $mol_service_plugin_notify extends $mol_service_plugin { | ||
static notification(e: unknown) { return null as null | undefined | Promise<unknown> } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters