From 80cd80d49314eac128dc6e5eb9085f9d1a12e5c9 Mon Sep 17 00:00:00 2001 From: z0ccc Date: Sat, 11 Sep 2021 13:11:03 -0400 Subject: [PATCH] Removed tor detecteing from connection block --- frontend/src/components/mainOld.js | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/frontend/src/components/mainOld.js b/frontend/src/components/mainOld.js index aecbd9d..33e9d3b 100644 --- a/frontend/src/components/mainOld.js +++ b/frontend/src/components/mainOld.js @@ -7,7 +7,6 @@ export { getLocation, getMap, getConnection, - detectTor, getSoftware, getHardware, getWebGL, @@ -91,28 +90,10 @@ const getConnection = (json) => { title: 'ASN', value: json.as, }, - { - key: 'tor', - title: 'Tor browser detected', - value: detectTor() ? 'True' : 'False', - }, ]; return data; }; -const detectTor = () => { - const date = new Date(); - if ( - navigator.plugins.length === 0 && - date.getTimezoneOffset() === 0 && - window.outerWidth === window.screen.availWidth && - window.outerHeight === window.screen.availHeight - ) { - return true; - } - return false; -}; - const getHardware = () => { const data = [ {