From 0ab562a28eb06f34a80215e91088b68afe51512f Mon Sep 17 00:00:00 2001 From: velzie Date: Sun, 13 Oct 2024 13:32:48 -0400 Subject: [PATCH] fix setrealmfn --- src/client/shared/realm.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/shared/realm.ts b/src/client/shared/realm.ts index ccf5d84..2b96fdd 100644 --- a/src/client/shared/realm.ts +++ b/src/client/shared/realm.ts @@ -7,7 +7,7 @@ export default function (client: ScramjetClient, self: typeof globalThis) { // object.$setrealm({}).postMessage(...) // the empty object is the "pollutant" which can reconstruct the real realm // i explain more in postmessage.ts - Object.defineProperty(self.Object.prototype, config.setrealmfn, { + Object.defineProperty(self.Object.prototype, config.globals.setrealmfn, { value(pollution: {}) { // this is bad!! sites could detect this Object.defineProperty(this, POLLUTANT, {