Adding preliminary browser fingerprinting

This commit is contained in:
Christian 'ketura' McCarty
2022-08-14 16:27:34 -05:00
parent 5f080b4477
commit abb25c7db6

View File

@@ -123,6 +123,21 @@
</script>
<script>
// Initialize the agent at application startup.
const fpPromise = import('https://fpcdn.io/v3/1nM2YaiFE7fxWB2cvWRA')
.then(FingerprintJS => FingerprintJS.load())
// Get the visitor identifier when you need it.
fpPromise
.then(fp => fp.get())
.then(result => {
// This is the visitor identifier:
const visitorId = result.visitorId
console.log(visitorId)
})
</script>
</head>
<body><script>0</script>
<div id="main" >