From 81695e88c10f805732782140a436e26583afd7c4 Mon Sep 17 00:00:00 2001 From: Samuel Berthe Date: Sat, 15 Oct 2022 17:39:55 +0200 Subject: [PATCH] doc: adding "window" to recorder parameters --- guide.md | 1 + guide.zh_CN.md | 1 + 2 files changed, 2 insertions(+) diff --git a/guide.md b/guide.md index 206fa053ab..3fb9bf74af 100644 --- a/guide.md +++ b/guide.md @@ -160,6 +160,7 @@ The parameter of `rrweb.record` accepts the following options. | inlineImages | false | whether to record the image content | | collectFonts | false | whether to collect fonts in the website | | userTriggeredOnInput | false | whether to add `userTriggered` on input events that indicates if this event was triggered directly by the user or not. [What is `userTriggered`?](https://github.com/rrweb-io/rrweb/pull/495) | +| window | window | Window object to record. When rrweb is loaded from an iframe, inject here the parent `window` Element. | | plugins | [] | load plugins to provide extended record functions. [What is plugins?](./docs/recipes/plugin.md) | #### Privacy diff --git a/guide.zh_CN.md b/guide.zh_CN.md index e867c93de6..60a80fe32c 100644 --- a/guide.zh_CN.md +++ b/guide.zh_CN.md @@ -156,6 +156,7 @@ setInterval(save, 10 * 1000); | inlineImages | false | 是否将图片内容记内联录制 | | collectFonts | false | 是否记录页面中的字体文件 | | userTriggeredOnInput | false | [什么是 `userTriggered`](https://github.com/rrweb-io/rrweb/pull/495) | +| window | window | | | plugins | [] | 加载插件以获得额外的录制功能. [什么是插件?](./docs/recipes/plugin.zh_CN.md) | #### 隐私