Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
bjesus committed Feb 20, 2024
1 parent a940893 commit ebe010b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,10 @@ export default async function (manager: Manager, settings: ComponentSettings) {
const { client, payload } = event

if (payload.visibilityChange[0].state == 'visible') {
event.client.set('engagementStart', payload.visibilityChange[0].timestamp)
event.client.set(
'engagementStart',
payload.visibilityChange[0].timestamp
)
} else if (payload.visibilityChange[0].state == 'hidden') {
// on pageblur
computeEngagementDuration(event)
Expand Down

0 comments on commit ebe010b

Please sign in to comment.