Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pauldambra committed Nov 28, 2024
1 parent e52df1e commit 9053fb9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions cypress/e2e/session-recording.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -523,6 +523,7 @@ describe('Session recording', () => {
capturedSnapshot['properties']['$snapshot_data'][3],
capturedSnapshot['properties']['$snapshot_data'][4],
])

expectPageViewCustomEvent(customEvents[0])
expectPostHogConfigCustomEvent(customEvents[1])
expectSessionOptionsCustomEvent(customEvents[2])
Expand Down
2 changes: 1 addition & 1 deletion src/extensions/replay/sessionrecording.ts
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,7 @@ export class SessionRecording {
const href = event?.properties.$current_url
? this._maskUrl(event?.properties.$current_url)
: ''
if (!href || this.status !== 'active') {
if (!href) {
return
}
this._tryAddCustomEvent('$pageview', { href })
Expand Down

0 comments on commit 9053fb9

Please sign in to comment.