Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pauldambra committed Nov 7, 2023
1 parent 8450408 commit b5f8965
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/posthog-core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -934,7 +934,7 @@ export class PostHog {
if (this.sessionManager) {
// don't let a delayed page leave start a new session
const { sessionId, windowId } = this.sessionManager.checkAndGetSessionAndWindowId(
event_name !== '$pageleave'
event_name === '$pageleave'
)
properties['$session_id'] = sessionId
properties['$window_id'] = windowId
Expand Down

0 comments on commit b5f8965

Please sign in to comment.