Skip to content

Commit 0205265

Browse files
committed
[core] dpsc: oops
1 parent b3cc3b8 commit 0205265

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/client/shared/wrap.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,8 @@ export default function (client: ScramjetClient, self: typeof globalThis) {
7373
config.globals.wrappropertybase + "location",
7474
{
7575
get: function () {
76+
// if (this.location.constructor.toString().includes("Location")) {
77+
7678
if (this === self || this === self.document) {
7779
return client.locationProxy;
7880
}
@@ -81,7 +83,7 @@ export default function (client: ScramjetClient, self: typeof globalThis) {
8183
},
8284
set(value: any) {
8385
if (this === self || this === self.document) {
84-
client.locationProxy = value;
86+
client.url = value;
8587

8688
return;
8789
}

0 commit comments

Comments
 (0)