Skip to content

Commit abd9b31

Browse files
committed
changed package version and function name
1 parent 988cf6e commit abd9b31

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

example/src/App.tsx

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,15 @@
11
import React, { useState } from 'react';
22
import './App.css';
3-
import { getDeviceId } from './code/FingerPrint';
3+
44

55
function App() {
66
const [browserFingerprint, setBrowserFingerPrint] = useState("");
77
const getBrowserFingerPrint = () => {
8-
getDeviceId().then((res) => {
8+
getCurrentBrowserFingerPrint().then((res) => {
99
setBrowserFingerPrint(res)
1010
}).catch((err) => {
1111
setBrowserFingerPrint(JSON.stringify(err))
1212
})
13-
// getDeviceId().then((fingerprint) => {
14-
// setBrowserFingerPrint(fingerprint)
15-
// }).catch((err) => {
16-
// setBrowserFingerPrint(err)
17-
// })
1813
}
1914

2015
return (

0 commit comments

Comments
 (0)