Added platform input

This commit is contained in:
z0ccc 2022-10-23 14:04:43 -04:00
parent 4b24ab3dd0
commit 8e9a5da964
3 changed files with 14 additions and 2 deletions

View file

@ -109,7 +109,11 @@ const AutofillPage = ({ tab, ipData }: AutofillPageProps) => {
<TableRow title="Address" value={address} />
<TableRow title="Phone" value={phone} noBorder />
</Table>
<Button variant="primary" onClick={() => console.log('click')}>
<Button
variant="primary"
sx={{ borderRadius: '4px' }}
onClick={() => console.log('click')}
>
Autofill Current Page
</Button>
</Page>

View file

@ -155,6 +155,14 @@ const UserAgentPage = ({ tab }: UserAgentPageProps) => {
onChange={changeUserAgent}
mb="12px"
/>
<DebouncedInput
name="platform"
title="Platform"
value={navigator.platform}
setValue={setUserAgent}
onChange={changeUserAgent}
mb="12px"
/>
{userAgentType !== 'default' && (
<CheckBox title={'Enable Debugger API Spoofing'} />
)}

View file

@ -49,12 +49,12 @@ export const theme: Theme = {
},
buttons: {
primary: {
borderRadius: '4px',
color: 'background',
bg: 'primary',
py: '3px',
px: '8px',
cursor: 'pointer',
borderRadius: '0',
width: '100%',
'&:hover': {
bg: 'primaryDark',