Changed dateBlock to ItnlBlock
This commit is contained in:
parent
5f340ae7f1
commit
77e3ff68b7
3 changed files with 19 additions and 19 deletions
|
|
@ -1,11 +1,11 @@
|
|||
import ScanBlock from './ScanBlock';
|
||||
import Table from './Table';
|
||||
import { getDate } from './main';
|
||||
import { getIntl } from './main';
|
||||
|
||||
const DateBlock = () => (
|
||||
<ScanBlock>
|
||||
<h1>Date</h1>
|
||||
<Table type="navigator" data={getDate()} />
|
||||
<h1>Intl</h1>
|
||||
<Table type="navigator" data={getIntl()} />
|
||||
<p>
|
||||
<b>Explanation:</b> JavaScript can be used to find information about your
|
||||
hardware. This information can be used to create a fingerprint.
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
/* eslint-disable no-unused-vars */
|
||||
import UserAgentBlock from './UserAgentBlock';
|
||||
import DateBlock from './DateBlock';
|
||||
import IntlBlock from './IntlBlock';
|
||||
import OtherBlock from './OtherBlock';
|
||||
import NavigatorBlock from './NavigatorBlock';
|
||||
import ScreenBlock from './ScreenBlock';
|
||||
|
|
@ -14,7 +14,7 @@ import FiltersBlock from './FiltersBlock';
|
|||
|
||||
const ScanBlocks = () => (
|
||||
<>
|
||||
<DateBlock />
|
||||
<IntlBlock />
|
||||
<FingerprintBlock />
|
||||
<LocationBlock />
|
||||
<ConnectionBlock />
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ export {
|
|||
getScreen,
|
||||
checkScreenProperties,
|
||||
detectTor,
|
||||
getDate,
|
||||
getIntl,
|
||||
};
|
||||
|
||||
const getDeviceMemory = () => ({
|
||||
|
|
@ -279,12 +279,12 @@ const getScreen = () => [
|
|||
getColorDepth(),
|
||||
];
|
||||
|
||||
const getDateNow = () => ({
|
||||
key: 'date',
|
||||
title: 'Date',
|
||||
value: Date.now(),
|
||||
issues: [],
|
||||
});
|
||||
// const getDateNow = () => ({
|
||||
// key: 'date',
|
||||
// title: 'Date',
|
||||
// value: Date.now(),
|
||||
// issues: [],
|
||||
// });
|
||||
|
||||
const getCalendar = () => ({
|
||||
key: 'calendar',
|
||||
|
|
@ -300,14 +300,14 @@ const getTimezone = () => ({
|
|||
issues: [],
|
||||
});
|
||||
|
||||
const getTimezoneOffset = () => ({
|
||||
key: 'timezoneOffset',
|
||||
title: 'Timezone offset',
|
||||
value: new Date().getTimezoneOffset(),
|
||||
issues: [],
|
||||
});
|
||||
// const getTimezoneOffset = () => ({
|
||||
// key: 'timezoneOffset',
|
||||
// title: 'Timezone offset',
|
||||
// value: new Date().getTimezoneOffset(),
|
||||
// issues: [],
|
||||
// });
|
||||
|
||||
const getDate = () => [getCalendar(), getTimezone(), getTimezoneOffset()];
|
||||
const getIntl = () => [getCalendar(), getTimezone()];
|
||||
|
||||
const detectTor = () => {
|
||||
const date = new Date();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue