From e9c792265f89e604a7f56eb5a0f4994739b063b6 Mon Sep 17 00:00:00 2001 From: Yun Feng Date: Thu, 4 Nov 2021 14:11:50 +0800 Subject: [PATCH] doc: update two outdated links --- docs/recipes/console.md | 2 +- docs/recipes/console.zh_CN.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/recipes/console.md b/docs/recipes/console.md index a9fa14b6..ec1d06ec 100644 --- a/docs/recipes/console.md +++ b/docs/recipes/console.md @@ -73,4 +73,4 @@ Description of replay option is as follows: | key | default | description | | ------------ | -------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- | | level | ['log','warn','error',...] | Same meaning as that option in recordLog. You can set this option to play levels of log you need. | -| replayLogger | a console based object that implements the interface [ReplayLogger](../../src/types.ts#L417) | You can also set a replay logger to replay the log messages in a simulated browser console by implementing the interface `ReplayLogger` | +| replayLogger | a console based object that implements the interface [ReplayLogger](../../packages/rrweb/src/plugins/console/replay/index.ts#L13) | You can also set a replay logger to replay the log messages in a simulated browser console by implementing the interface `ReplayLogger` | diff --git a/docs/recipes/console.zh_CN.md b/docs/recipes/console.zh_CN.md index e5d89525..ab3d19b9 100644 --- a/docs/recipes/console.zh_CN.md +++ b/docs/recipes/console.zh_CN.md @@ -72,4 +72,4 @@ replayer.play(); | key | 默认值 | 功能 | | ------------ | ---------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | | level | ['log','warn','error',...] | 与 recordLog 设置选项的含义相同,你可以只播放想要的 console 函数类型 | -| replayLogger | 一个基于 console 的对接口[ReplayLogger](../../src/types.ts#L417)的实现 | 你也可以通过传入一个`ReplayLogger`接口的自己的实现,用 html 模拟一个浏览器控制台,来播放录制的 console 数据 | +| replayLogger | 一个基于 console 的对接口[ReplayLogger](../../packages/rrweb/src/plugins/console/replay/index.ts#L13)的实现 | 你也可以通过传入一个`ReplayLogger`接口的自己的实现,用 html 模拟一个浏览器控制台,来播放录制的 console 数据 |