mirror of
https://github.com/MercuryWorkshop/scramjet.git
synced 2025-05-15 23:30:00 -04:00
feat: rewrite iframe.contentWindow
This commit is contained in:
parent
506d99f9b6
commit
93db66ebc8
2 changed files with 20 additions and 4 deletions
|
@ -48,13 +48,13 @@ export class ScramjetClient {
|
|||
|
||||
constructor(public global: typeof globalThis) {
|
||||
if ("document" in self) {
|
||||
this.documentProxy = createDocumentProxy(this, self);
|
||||
this.documentProxy = createDocumentProxy(this, global);
|
||||
}
|
||||
|
||||
this.locationProxy = createLocationProxy(this, self);
|
||||
this.windowProxy = createWindowProxy(this, self);
|
||||
this.locationProxy = createLocationProxy(this, global);
|
||||
this.windowProxy = createWindowProxy(this, global);
|
||||
|
||||
self[ScramjetClient.SCRAMJET] = this;
|
||||
global[ScramjetClient.SCRAMJET] = this;
|
||||
}
|
||||
|
||||
hook() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue