import { useState, useEffect } from 'react'; import Block from './Block'; import Table from './Table'; import getOther from '../utils/other'; const OtherBlock = ({ workerData }) => { const [adBlock, setAdBlock] = useState(); const [battery, setBattery] = useState(); useEffect(() => { fetch('https://www3.doubleclick.net', { method: 'HEAD', mode: 'no-cors', cache: 'no-store', }) .then(() => { setAdBlock(false); }) .catch(() => { setAdBlock(true); }); navigator.getBattery().then((res) => { setBattery(res); }); }, []); return (

Other

{battery && adBlock !== undefined && ( )}

Explanation: JavaScript can be used to find information about your hardware. This information can be used to create a fingerprint.

); }; export default OtherBlock;