Skip to content

Commit e39c026

Browse files
authored
Create index.html
1 parent c4a6de8 commit e39c026

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

public/index.html

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<script>
2+
// Initialize the agent at application startup.
3+
const fpPromise = import('https://fpcdn.io/v3/5Dhy65Lyh1KZNhtnx2SB')
4+
.then(FingerprintJS => FingerprintJS.load({
5+
region: 'eu'
6+
}))
7+
8+
// Get the visitor identifier when you need it.
9+
fpPromise
10+
.then(fp => fp.get())
11+
.then(result => {
12+
// This is the visitor identifier:
13+
const visitorId = result.visitorId
14+
console.log(visitorId)
15+
})
16+
</script>

0 commit comments

Comments
 (0)