mirror of
https://github.com/MercuryWorkshop/scramjet.git
synced 2025-05-14 06:50:01 -04:00
Merge branch 'main' of https://github.com/MercuryWorkshop/aerojet
This commit is contained in:
commit
65045d5aab
1 changed files with 2 additions and 1 deletions
|
@ -52,6 +52,7 @@ export default function (client: ScramjetClient, self: Self) {
|
|||
|
||||
client.Trap("navigator.serviceWorker.ready", {
|
||||
get(ctx) {
|
||||
console.log(registration);
|
||||
return new Promise((resolve) => resolve(registration));
|
||||
},
|
||||
});
|
||||
|
@ -74,7 +75,7 @@ export default function (client: ScramjetClient, self: Self) {
|
|||
|
||||
const handle = worker.port;
|
||||
|
||||
navigator.serviceWorker.controller.postMessage(
|
||||
client.serviceWorker.controller.postMessage(
|
||||
{
|
||||
scramjet$type: "registerServiceWorker",
|
||||
port: handle,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue