Skip to content

Commit 16e575a

Browse files
committed
reivew fixes
1 parent fc9a8de commit 16e575a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/replay/src/util/handleRecordingEmit.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ export function createOptionsEvent(replay: ReplayContainer): RecordingEvent {
102102
const options = replay.getOptions();
103103
return {
104104
type: EventType.Custom,
105-
timestamp: new Date().getTime(),
105+
timestamp: Date.now(),
106106
data: {
107107
tag: 'options',
108108
payload: {
@@ -112,11 +112,11 @@ export function createOptionsEvent(replay: ReplayContainer): RecordingEvent {
112112
blockAllMedia: options.blockAllMedia,
113113
maskAllText: options.maskAllText,
114114
maskAllInputs: options.maskAllInputs,
115-
useCompression: replay.eventBuffer && replay.eventBuffer.type === 'worker',
115+
useCompression: replay.eventBuffer ? replay.eventBuffer.type === 'worker' : false,
116116
networkDetailHasUrls: options.networkDetailAllowUrls.length > 0,
117117
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,
120120
},
121121
},
122122
};

0 commit comments

Comments
 (0)