mirror of
https://github.com/MercuryWorkshop/scramjet.git
synced 2025-05-13 14:30:02 -04:00
ScramjetClient.SCRAMJET -> SCRAMJETCLIENT
This commit is contained in:
parent
2050fa140c
commit
5f77342d8d
11 changed files with 82 additions and 50 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue