fix: Iframe replay fails after the second full snapshot #983 (#984)

This commit is contained in:
luocongqiu
2022-09-08 21:51:39 +08:00
committed by GitHub
parent e7fdf53366
commit 6eaec0424d

View File

@@ -478,13 +478,11 @@ function serializeNode(
type: NodeType.Document, type: NodeType.Document,
childNodes: [], childNodes: [],
compatMode: (n as Document).compatMode, // probably "BackCompat" compatMode: (n as Document).compatMode, // probably "BackCompat"
rootId,
}; };
} else { } else {
return { return {
type: NodeType.Document, type: NodeType.Document,
childNodes: [], childNodes: [],
rootId,
}; };
} }
case n.DOCUMENT_TYPE_NODE: case n.DOCUMENT_TYPE_NODE: