Skip to content

Commit

Permalink
fix: 修复子应用window.window指向问题 (#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
yiludege authored Aug 13, 2022
1 parent 022bced commit 1938892
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/wujie-core/src/proxy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ export function proxyGenerator(
if (p === "location") {
return target.__WUJIE.proxyLocation;
}
// self.self === self
if (p === "self") {
// 判断自身
if (p === "self" || p === "window") {
return target.__WUJIE.proxy;
}
// 不要绑定this
Expand Down

0 comments on commit 1938892

Please sign in to comment.