Skip to content

Commit

Permalink
fix(replayer): <style> node rules attr can be undefined
Browse files Browse the repository at this point in the history
Not sure why this happens.
Fixes JAVASCRIPT-2P6F
  • Loading branch information
billyvg committed Jan 30, 2024
1 parent 04b3de5 commit 4a91d24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/rrweb/src/replay/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1299,7 +1299,7 @@ export class Replayer {
else if (d.id)
(
this.virtualDom.mirror.getNode(d.id) as RRStyleElement | null
)?.rules.push(d);
)?.rules?.push(d);
} else this.applyStyleSheetMutation(d);
break;
}
Expand Down

0 comments on commit 4a91d24

Please sign in to comment.