mirror of
https://github.com/MercuryWorkshop/scramjet.git
synced 2025-05-13 14:30:02 -04:00
fix postmessage shit
This commit is contained in:
parent
6cccf1f412
commit
d011d73a80
6 changed files with 44 additions and 36 deletions
|
@ -15,7 +15,9 @@ if (!(ScramjetClient.SCRAMJET in self)) {
|
|||
const client = new ScramjetClient(self);
|
||||
client.hook();
|
||||
|
||||
if (issw) {
|
||||
if (
|
||||
new URL(self.location.href).searchParams.get("dest") === "serviceworker"
|
||||
) {
|
||||
const runtime = new ScramjetServiceWorkerRuntime(client);
|
||||
runtime.hook();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue