File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ export default class ReplayRecorder {
31
31
}
32
32
33
33
isFull ( ) {
34
- if ( this . actions && this . actions . length > 10000 ) {
34
+ if ( this . actions && this . actions . length > 5000 ) {
35
35
return true ;
36
36
}
37
37
return false ;
@@ -521,7 +521,7 @@ export default class ReplayRecorder {
521
521
}
522
522
}
523
523
}
524
-
524
+
525
525
const nodesWithAddedChildren = [ ] ;
526
526
for ( const r of records ) {
527
527
const target = r . target ;
@@ -554,7 +554,9 @@ export default class ReplayRecorder {
554
554
}
555
555
case "characterData" : {
556
556
const a = { } ;
557
- a [ REPLAYREC_TEXT ] = [ id , target . data ] ;
557
+ if ( target . nodeType === Node . TEXT_NODE ) {
558
+ a [ REPLAYREC_TEXT ] = [ id , target . data ] ;
559
+ }
558
560
this . actions . push ( a ) ;
559
561
break ;
560
562
}
You can’t perform that action at this time.
0 commit comments