Skip to content

Commit ad5c9c6

Browse files
committed
Merge branch 'master' into extension
2 parents 2409f76 + 174b9ac commit ad5c9c6

28 files changed

+2657
-487
lines changed

.github/workflows/ci-cd.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
run: yarn turbo run check-types
3131

3232
- name: Run tests
33-
run: xvfb-run --server-args="-screen 0 1920x1080x24" yarn test
33+
run: PUPPETEER_HEADLESS=true xvfb-run --server-args="-screen 0 1920x1080x24" yarn test
3434

3535
- name: Upload diff images to GitHub
3636
uses: actions/upload-artifact@v3

guide.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,7 @@ The parameter of `rrweb.record` accepts the following options.
158158
| sampling | - | refer to the [storage optimization recipe](./docs/recipes/optimize-storage.md) |
159159
| recordCanvas | false | Whether to record the canvas element. Available options:<br/>`false`, <br/>`true` |
160160
| recordCrossOriginIframes | false | Whether to record cross origin iframes. rrweb has to be injected in each child iframe for this to work. Available options:<br/>`false`, <br/>`true` |
161+
| recordAfter | 'load' | If the document is not ready, then the recorder will start recording after the specified event is fired. Available options: `DOMContentLoaded`, `load` |
161162
| inlineImages | false | whether to record the image content |
162163
| collectFonts | false | whether to collect fonts in the website |
163164
| 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) |
@@ -311,6 +312,7 @@ The replayer accepts options as its constructor's second parameter, and it has t
311312
| logConfig | - | configuration of console output playback, refer to the [console recipe](./docs/recipes/console.md) |
312313
| plugins | [] | load plugins to provide extended replay functions. [What is plugins?](./docs/recipes/plugin.md) |
313314
| useVirtualDom | true | whether to use Virtual Dom optimization in the process of skipping to a new point of time |
315+
| logger | console | The logger object used by the replayer to print warnings or errors |
314316

315317
#### Use rrweb-player
316318

guide.zh_CN.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ setInterval(save, 10 * 1000);
154154
| dataURLOptions | {} | Canvas 图像快照的格式和质量,这个参数将传递给 OffscreenCanvas.convertToBlob(),使用这个参数能有效减小录制数据的大小 |
155155
| recordCanvas | false | 是否记录 canvas 内容, 可用选项:`false`, `true` |
156156
| recordCrossOriginIframes | false | 是否记录 cross origin iframes。 必须在每个子 iframe 中注入 rrweb 才能使其工作。 可用选项:`false`, `true` |
157+
| recordAfter | 'load' | 如果 document 还没有加载完成,recorder 将会在指定的事件触发后开始录制。可用选项: `DOMContentLoaded`, `load` |
157158
| inlineImages | false | 是否将图片内容记内联录制 |
158159
| collectFonts | false | 是否记录页面中的字体文件 |
159160
| userTriggeredOnInput | false | [什么是 `userTriggered`](https://github.com/rrweb-io/rrweb/pull/495) |
@@ -306,6 +307,7 @@ replayer.destroy();
306307
| unpackFn | - | 数据解压缩函数,详见[优化存储策略](./docs/recipes/optimize-storage.zh_CN.md) |
307308
| plugins | [] | 加载插件以获得额外的回放功能. [什么是插件?](./docs/recipes/plugin.zh_CN.md) |
308309
| useVirtualDom | true | 在播放器跳转到一个新的时间点的过程中,是否使用 Virtual Dom 优化 |
310+
| logger | console | 当播放器出现警告或错误时用来打印日志的对象 |
309311

310312
#### 使用 rrweb-player
311313

0 commit comments

Comments
 (0)