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,
|
||||
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 = [
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue