mirror of
https://github.com/MercuryWorkshop/scramjet.git
synced 2025-05-13 22:40:01 -04:00
cursed
This commit is contained in:
parent
9b2acd8ab7
commit
71fd6f12ef
3 changed files with 18 additions and 10 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue