Removed tor detecteing from connection block
This commit is contained in:
parent
c9d7254c4d
commit
80cd80d493
1 changed files with 0 additions and 19 deletions
|
|
@ -7,7 +7,6 @@ export {
|
||||||
getLocation,
|
getLocation,
|
||||||
getMap,
|
getMap,
|
||||||
getConnection,
|
getConnection,
|
||||||
detectTor,
|
|
||||||
getSoftware,
|
getSoftware,
|
||||||
getHardware,
|
getHardware,
|
||||||
getWebGL,
|
getWebGL,
|
||||||
|
|
@ -91,28 +90,10 @@ const getConnection = (json) => {
|
||||||
title: 'ASN',
|
title: 'ASN',
|
||||||
value: json.as,
|
value: json.as,
|
||||||
},
|
},
|
||||||
{
|
|
||||||
key: 'tor',
|
|
||||||
title: 'Tor browser detected',
|
|
||||||
value: detectTor() ? 'True' : 'False',
|
|
||||||
},
|
|
||||||
];
|
];
|
||||||
return data;
|
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 getHardware = () => {
|
||||||
const data = [
|
const data = [
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue