diff --git a/package.json b/package.json index dc32d524..fbd6d138 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@highlight-run/rrweb", - "version": "1.1.10", + "version": "1.1.11", "description": "record and replay the web", "scripts": { "test": "npm run bundle:browser && cross-env TS_NODE_CACHE=false TS_NODE_FILES=true mocha -r ts-node/register -r ignore-styles -r jsdom-global/register test/**.test.ts", diff --git a/src/record/index.ts b/src/record/index.ts index a097b756..63881230 100644 --- a/src/record/index.ts +++ b/src/record/index.ts @@ -478,7 +478,8 @@ function record( record.addCustomEvent = (tag: string, payload: T) => { if (!wrappedEmit) { - throw new Error('please add custom event after start recording'); + // throw new Error('please add custom event after start recording'); + return; } wrappedEmit( wrapEvent({