Skip to content

Commit

Permalink
Pull in fix for #528 from rrweb (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
John Pham authored Jun 30, 2021
1 parent 3a7dbdb commit edd2b03
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@highlight-run/rrweb",
"version": "0.12.0",
"version": "0.12.1",
"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",
Expand Down
6 changes: 5 additions & 1 deletion src/record/mutation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,11 @@ class DoubleLinkedList {
if (current) {
current.previous = node;
}
} else if (n.nextSibling && isNodeInLinkedList(n.nextSibling)) {
} else if (
n.nextSibling &&
isNodeInLinkedList(n.nextSibling) &&
n.nextSibling.__ln.previous
) {
const current = n.nextSibling.__ln.previous;
node.previous = current;
node.next = n.nextSibling.__ln;
Expand Down

0 comments on commit edd2b03

Please sign in to comment.