Skip to content

Commit 78916a0

Browse files
committed
feat: rc25优化
1 parent 90e691b commit 78916a0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

docs/zh-cn/advanced.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,12 +84,12 @@ microApp.start({
8484
})
8585
```
8686

87-
## escapeIframeWindowEvents : iframe 模式 逃逸沙盒的window事件
87+
## 5、escapeIframeWindowEvents : iframe 模式 逃逸沙盒的window事件
8888
```js
8989
import microApp from '@micro-zoe/micro-app'
9090

9191
microApp.start({
92-
// 子应用的
92+
// 配置所有iframe子应用 逃逸沙盒的window事件
9393
escapeIframeWindowEvents: ['message']
9494
})
9595
```

src/sandbox/iframe/window.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ function patchWindowEffect (microAppWindow: microAppWindowType): CommonEffectHoo
237237
*/
238238
let escapeSandboxEvent: Array<string> = []
239239
if (Array.isArray(microApp?.options?.escapeIframeWindowEvents)) {
240-
escapeSandboxEvent = microApp?.options?.escapeIframeWindowEvents
240+
escapeSandboxEvent = microApp.options.escapeIframeWindowEvents
241241
}
242242
const scopeWindowEvent = SCOPE_WINDOW_EVENT_OF_IFRAME.filter(item => !escapeSandboxEvent.includes(item))
243243
return scopeWindowEvent.includes(type) ? microAppWindow : rawWindow

0 commit comments

Comments
 (0)