import { ScramjetClient } from "../client"; export default function (client: ScramjetClient, _self: Self) { client.Trap("origin", { get() { // this isn't right!! return client.url.origin; }, set() { return false; }, }); client.Trap("Document.prototype.URL", { get() { return client.url.href; }, set() { return false; }, }); client.Trap("Document.prototype.documentURI", { get() { return client.url.href; }, set() { return false; }, }); client.Trap("Document.prototype.domain", { get() { return client.url.hostname; }, set() { return false; }, }); }