This commit is contained in:
velzie 2024-08-24 21:30:45 -04:00
parent 9b2acd8ab7
commit 71fd6f12ef
No known key found for this signature in database
GPG key ID: 048413F95F0DDE1F
3 changed files with 18 additions and 10 deletions

View file

@ -15,6 +15,17 @@ export default function (client: ScramjetClient, self: Self) {
return true;
},
ports() {
// don't know why i have to do this?
return this.ports;
},
source() {
let scram: ScramjetClient = this.source[ScramjetClient.SCRAMJET];
if (scram) return scram.windowProxy;
return this.source;
},
origin() {
if (typeof this.data === "object" && "$scramjet$origin" in this.data)
return this.data.$scramjet$origin;