diff --git a/frontend/src/components/Blocks.js b/frontend/src/components/Blocks.js index 1856a0b..8bef219 100644 --- a/frontend/src/components/Blocks.js +++ b/frontend/src/components/Blocks.js @@ -31,8 +31,8 @@ const ScanBlocks = () => {
Explanation: JavaScript can be used to find information about your
hardware. This information can be used to create a fingerprint.
diff --git a/frontend/src/components/UserAgentBlock.js b/frontend/src/components/UserAgentBlock.js
index 271f437..3101290 100644
--- a/frontend/src/components/UserAgentBlock.js
+++ b/frontend/src/components/UserAgentBlock.js
@@ -1,105 +1,17 @@
-// /* eslint-disable no-unused-vars */
-// import { useState, useEffect } from 'react';
-// import Bowser from 'bowser';
-// import ScanBlock from './Block';
-// import Table from './Table';
-// import {
-// checkNavigatorProperties,
-// checkWebWorker,
-// checkScreenProperties,
-// } from './main';
-// import { ReactComponent as CheckCircle } from '../images/checkCircle.svg';
+/* eslint-disable no-unused-vars */
+import ScanBlock from './Block';
+import Table from './Table';
+import getUserAgent from '../utils/userAgent';
-// const UserAgentBlock = () => {
-// const [firstRender, setfirstRender] = useState(true);
-// const [workerData, setWorkerData] = useState('');
-// const [userAgent, setUserAgent] = useState();
+const UserAgentBlock = ({ workerAgent }) => (
+
+ Explanation: JavaScript can be used to find information about your
+ hardware. This information can be used to create a fingerprint.
+
-// Explanation: JavaScript can be used to find information about
-// your hardware. This information can be used to create a fingerprint.
-// User Agent
+
+
User Agent
-// {userAgent && (
-//
-//
-//
-//
-//
-//
-//
-// Browser
-// {userAgent.browser.name}
-//
-//
-//
-//
-//
-//
-// Browser version
-// {userAgent.browser.version}
-//
-//
-//
-//
-//
-//
-// OS
-//
-// {userAgent.os.name} {userAgent.os.versionName}
-//
-//
-//
-//
-//
-//
-//
-// OS version
-// {userAgent.os.version}
-//
-//
-//
-//
-//
-//
-// Engine
-//
-// {userAgent.engine.name} {userAgent.engine.version}
-//
-//
-//
-//
-//
-//
-// Platform type
-// {userAgent.platform.type}
-//
-//
-//