ScramjetClient.SCRAMJET -> SCRAMJETCLIENT

This commit is contained in:
velzie 2024-08-30 16:59:52 -04:00
parent 2050fa140c
commit 5f77342d8d
No known key found for this signature in database
GPG key ID: 048413F95F0DDE1F
11 changed files with 82 additions and 50 deletions

View file

@ -1,5 +1,6 @@
// entrypoint for scramjet.client.js
import { SCRAMJETCLIENT } from "../symbols";
import { ScramjetClient } from "./client";
import { ScramjetServiceWorkerRuntime } from "./swruntime";
@ -13,7 +14,7 @@ export const isemulatedsw =
dbg.log("scrammin");
// if it already exists, that means the handlers have probably already been setup by the parent document
if (!(ScramjetClient.SCRAMJET in self)) {
if (!(SCRAMJETCLIENT in <Partial<typeof self>>self)) {
const client = new ScramjetClient(self);
if (self.COOKIE) client.loadcookies(self.COOKIE);