Skip to content

Commit d7ac6ec

Browse files
committed
[core] dpsc: proxy location for document.location too
1 parent 0519d52 commit d7ac6ec

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/client/shared/wrap.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,14 +73,14 @@ export default function (client: ScramjetClient, self: typeof globalThis) {
7373
config.globals.wrappropertybase + "location",
7474
{
7575
get: function () {
76-
if (this === self) {
76+
if (this === self || this === self.document) {
7777
return client.locationProxy;
7878
}
7979

8080
return this.location;
8181
},
8282
set(value: any) {
83-
if (this === self) {
83+
if (this === self || this === self.document) {
8484
client.locationProxy = value;
8585

8686
return;

0 commit comments

Comments
 (0)