fix postmessage shit

This commit is contained in:
velzie 2024-08-02 22:44:16 -04:00
parent 6cccf1f412
commit d011d73a80
No known key found for this signature in database
GPG key ID: 048413F95F0DDE1F
6 changed files with 44 additions and 36 deletions

View file

@ -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();
}