Skip to content

Commit 4befd4b

Browse files
committed
add docs
1 parent 257c6ea commit 4befd4b

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

guide.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,7 @@ The parameter of `rrweb.record` accepts the following options.
163163
| collectFonts | false | whether to collect fonts in the website |
164164
| 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) |
165165
| plugins | [] | load plugins to provide extended record functions. [What is plugins?](./docs/recipes/plugin.md) |
166+
| errorHandler | - | A callback that is called if something inside of rrweb throws an error. The callback receives the error as argument. |
166167

167168
#### Privacy
168169

packages/rrweb/src/record/error-handler.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ export function unregisterErrorHandler() {
1515
/**
1616
* Wrap callbacks in a wrapper that allows to pass errors to a configured `errorHandler` method.
1717
*/
18-
1918
export const callbackWrapper = <T extends Callback>(cb: T): T => {
2019
if (!errorHandler) {
2120
return cb;

0 commit comments

Comments
 (0)