mirror of
https://github.com/MercuryWorkshop/scramjet.git
synced 2025-05-15 23:30:00 -04:00
whatever
This commit is contained in:
parent
e0671f4648
commit
0d84f77084
3 changed files with 22 additions and 1 deletions
|
@ -68,8 +68,10 @@ export class ScramjetClient {
|
|||
constructor(public global: typeof globalThis) {
|
||||
this.serviceWorker = this.global.navigator.serviceWorker;
|
||||
|
||||
if ("document" in self) {
|
||||
if ("document" in global) {
|
||||
this.documentProxy = createDocumentProxy(this, global);
|
||||
|
||||
global.document[SCRAMJETCLIENT] = this;
|
||||
}
|
||||
|
||||
this.locationProxy = createLocationProxy(this, global);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue