From e5587435a0900661ea240ac0fc66d8d4e88ed638 Mon Sep 17 00:00:00 2001 From: Season Date: Sat, 20 Feb 2021 18:16:09 +0800 Subject: [PATCH] update guide --- guide.md | 2 +- guide.zh_CN.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/guide.md b/guide.md index 3912210123..a8fb804509 100644 --- a/guide.md +++ b/guide.md @@ -290,7 +290,7 @@ The replayer accepts options as its constructor's second parameter, and it has t | showDebug | false | whether to print debug messages during replay | | blockClass | 'rr-block' | element with the class name will display as a blocked area | | liveMode | false | whether to enable live mode | -| inertStyleRules | [] | accepts multiple CSS rule string, which will be injected into the replay iframe | +| insertStyleRules | [] | accepts multiple CSS rule string, which will be injected into the replay iframe | | triggerFocus | true | whether to trigger focus during replay | | UNSAFE_replayCanvas | false | whether to replay the canvas element. **Enable this will remove the sandbox, which is unsafe.** | | mouseTail | true | whether to show mouse tail during replay. Set to false to disable mouse tail. A complete config can be found in this [type](https://github.com/rrweb-io/rrweb/blob/9488deb6d54a5f04350c063d942da5e96ab74075/src/types.ts#L407) | diff --git a/guide.zh_CN.md b/guide.zh_CN.md index 4280a58da3..3414fb0d25 100644 --- a/guide.zh_CN.md +++ b/guide.zh_CN.md @@ -286,7 +286,7 @@ replayer.pause(5000); | showDebug | false | 是否在回放过程中打印 debug 信息 | | blockClass | 'rr-block' | 需要在回放时展示为隐藏区域的元素类名 | | liveMode | false | 是否开启直播模式 | -| inertStyleRules | [] | 可以传入多个 CSS rule string,用于自定义回放时 iframe 内的样式 | +| insertStyleRules | [] | 可以传入多个 CSS rule string,用于自定义回放时 iframe 内的样式 | | triggerFocus | true | 回放时是否回放 focus 交互 | | UNSAFE_replayCanvas | false | 回放时是否回放 canvas 内容,**开启后将会关闭沙盒策略,导致一定风险** | | mouseTail | true | 是否在回放时增加鼠标轨迹。传入 false 可关闭,传入对象可以定制轨迹持续时间、样式等,配置详见[类型](https://github.com/rrweb-io/rrweb/blob/9488deb6d54a5f04350c063d942da5e96ab74075/src/types.ts#L407) |