Skip to content

Commit

Permalink
fix: 修复chrome85以下版本window.window报错问题 (Tencent#444)
Browse files Browse the repository at this point in the history
  • Loading branch information
yiludege authored Mar 16, 2023
1 parent 58e4d50 commit 0905c28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/wujie-core/src/proxy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export function proxyGenerator(
return target.__WUJIE.proxyLocation;
}
// 判断自身
if (p === "self" || p === "window") {
if (p === "self" || (p === "window" && Object.getOwnPropertyDescriptor(window, "window").get)) {
return target.__WUJIE.proxy;
}
// 不要绑定this
Expand Down

0 comments on commit 0905c28

Please sign in to comment.