File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ export function createOptionsEvent(replay: ReplayContainer): RecordingEvent {
102
102
const options = replay . getOptions ( ) ;
103
103
return {
104
104
type : EventType . Custom ,
105
- timestamp : new Date ( ) . getTime ( ) ,
105
+ timestamp : Date . now ( ) ,
106
106
data : {
107
107
tag : 'options' ,
108
108
payload : {
@@ -112,11 +112,11 @@ export function createOptionsEvent(replay: ReplayContainer): RecordingEvent {
112
112
blockAllMedia : options . blockAllMedia ,
113
113
maskAllText : options . maskAllText ,
114
114
maskAllInputs : options . maskAllInputs ,
115
- useCompression : replay . eventBuffer && replay . eventBuffer . type === 'worker' ,
115
+ useCompression : replay . eventBuffer ? replay . eventBuffer . type === 'worker' : false ,
116
116
networkDetailHasUrls : options . networkDetailAllowUrls . length > 0 ,
117
117
networkCaptureBodies : options . networkCaptureBodies ,
118
- networkRequestHeaders : options . networkRequestHeaders . length > 0 ,
119
- networkResponseHeaders : options . networkResponseHeaders . length > 0 ,
118
+ networkRequestHasHeaders : options . networkRequestHeaders . length > 0 ,
119
+ networkResponseHasHeaders : options . networkResponseHeaders . length > 0 ,
120
120
} ,
121
121
} ,
122
122
} ;
You can’t perform that action at this time.
0 commit comments