diff --git a/package.json b/package.json index fc4e5a2b..1822ecf4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@highlight-run/rrweb", - "version": "0.10.6", + "version": "0.11.0", "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 test/**/*.test.ts", diff --git a/src/snapshot/rebuild.ts b/src/snapshot/rebuild.ts index fc475781..ff92f069 100644 --- a/src/snapshot/rebuild.ts +++ b/src/snapshot/rebuild.ts @@ -58,7 +58,7 @@ function getTagName(n: elementNode): string { const HOVER_SELECTOR = /([^\\]):hover/g; export function addHoverClass(cssText: string): string { - if (!window.HIG_CONFIGURATION.enableOnHoverClass) { + if (!window.HIG_CONFIGURATION?.enableOnHoverClass) { return cssText; } const ast = parse(cssText, { silent: true });