We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 988cf6e commit abd9b31Copy full SHA for abd9b31
example/src/App.tsx
@@ -1,20 +1,15 @@
1
import React, { useState } from 'react';
2
import './App.css';
3
-import { getDeviceId } from './code/FingerPrint';
+
4
5
function App() {
6
const [browserFingerprint, setBrowserFingerPrint] = useState("");
7
const getBrowserFingerPrint = () => {
8
- getDeviceId().then((res) => {
+ getCurrentBrowserFingerPrint().then((res) => {
9
setBrowserFingerPrint(res)
10
}).catch((err) => {
11
setBrowserFingerPrint(JSON.stringify(err))
12
})
13
- // getDeviceId().then((fingerprint) => {
14
- // setBrowserFingerPrint(fingerprint)
15
- // }).catch((err) => {
16
- // setBrowserFingerPrint(err)
17
- // })
18
}
19
20
return (
0 commit comments