diff --git a/frontend/src/components/FingerprintBlock.css b/frontend/src/components/FingerprintBlock.css index e18f507..0ff57f4 100644 --- a/frontend/src/components/FingerprintBlock.css +++ b/frontend/src/components/FingerprintBlock.css @@ -26,6 +26,7 @@ form { cursor: pointer; color: var(--text); margin: 0 0 0 6px; + -webkit-appearance: none; } .saveButton:hover { diff --git a/frontend/src/components/FingerprintBlock.js b/frontend/src/components/FingerprintBlock.js index afe2f17..db4cf5f 100644 --- a/frontend/src/components/FingerprintBlock.js +++ b/frontend/src/components/FingerprintBlock.js @@ -39,7 +39,7 @@ const FingerprintBlock = ({ workerData }) => { if you clear cookies, change your IP or use private mode the hash will stay the same. Enter a signature and turn on a VPN to test it out.

-
postSignature(hash, e.target[0].value)}> + postSignature(hash, e, setSignature)}> { issues: [isProxy], }, { - key: 'Organization', + key: 'Org', value: data.org, issues: [isProxy], }, diff --git a/frontend/src/utils/fingerprint.js b/frontend/src/utils/fingerprint.js index 92bec38..0d4d42f 100644 --- a/frontend/src/utils/fingerprint.js +++ b/frontend/src/utils/fingerprint.js @@ -14,11 +14,13 @@ const getSignature = (hash, setSignature, setload) => { }); }; -const postSignature = (hash, signature) => { +const postSignature = (hash, e, setSignature) => { + e.preventDefault(); axios.post('https://api.vytal.io/fingerprint/', { - name: signature, + name: e.target[0].value, hash, }); + setSignature(e.target[0].value); }; const getHash = (data) => md5(JSON.stringify(data)).toString();