File tree Expand file tree Collapse file tree 2 files changed +2
-8
lines changed
browser-integration-tests/suites/replay/bufferModeReload Expand file tree Collapse file tree 2 files changed +2
-8
lines changed Original file line number Diff line number Diff line change 5
5
</ head >
6
6
< body >
7
7
< button onclick ="console.log('Test log 1') " id ="button1 "> Click me</ button >
8
- < button onclick ="window.doesNotExist( ) " id ="buttonError "> Click me</ button >
8
+ < button onclick ="Sentry.captureException('test error' ) " id ="buttonError "> Click me</ button >
9
9
</ body >
10
10
</ html >
Original file line number Diff line number Diff line change @@ -243,15 +243,9 @@ export class ReplayContainer implements ReplayContainerInterface {
243
243
return ;
244
244
}
245
245
246
- let recordingMode : ReplayRecordingMode = 'session' ;
247
-
248
246
// If segmentId > 0, it means we've previously already captured this session
249
247
// In this case, we still want to continue in `session` recording mode
250
- if ( this . session . sampled === 'buffer' && this . session . segmentId === 0 ) {
251
- recordingMode = 'buffer' ;
252
- }
253
-
254
- this . recordingMode = recordingMode ;
248
+ this . recordingMode = this . session . sampled === 'buffer' && this . session . segmentId === 0 ? 'buffer' : 'session' ;
255
249
256
250
logInfoNextTick (
257
251
`[Replay] Starting replay in ${ this . recordingMode } mode` ,
You can’t perform that action at this time.
0 commit comments