Skip to content

Commit 4686bf1

Browse files
committed
Update client check example
(Ignore mobile until sdk is ready)
1 parent 9fc17c8 commit 4686bf1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

specs/manager-events/user-events.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ manager.addEventListener('event', async ({ context, client }) => {
1313
},
1414
})
1515

16-
// Check that the client is a browser
17-
if (client.type === 'browser') {
16+
// Check client browser
17+
if (client.userAgent.includes('Chrome')) {
1818
client.set('example-uuid', uuidv4())
1919
client.fetch(
2020
`https://example.com/collectFromBrowser?dt=${system.page.title}`

0 commit comments

Comments
 (0)