Removed tor detecteing from connection block

This commit is contained in:
z0ccc 2021-09-11 13:11:03 -04:00
parent c9d7254c4d
commit 80cd80d493

View file

@ -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 = [
{