misc fixes
This commit is contained in:
parent
634ff42538
commit
3f2189bab5
3 changed files with 5 additions and 27 deletions
|
|
@ -18,9 +18,9 @@ const OtherOptionsPage = ({ tab }: OtherOptionsPageProps) => {
|
||||||
<Box sx={{ fontSize: '21px', mb: '12px', fontWeight: '600' }}>
|
<Box sx={{ fontSize: '21px', mb: '12px', fontWeight: '600' }}>
|
||||||
Other Options
|
Other Options
|
||||||
</Box>
|
</Box>
|
||||||
|
|
||||||
<SettingsCheckBox title={'Network Prediction Enabled'} />
|
<SettingsCheckBox title={'Network Prediction Enabled'} />
|
||||||
<SettingsCheckBox title={'Alternate Error Pages Enabled'} />
|
<SettingsCheckBox title={'Alternate Error Pages Enabled'} />
|
||||||
|
<SettingsCheckBox title={'Safe Browsing Reporting Enabled'} />
|
||||||
<SettingsCheckBox title={'Search Suggest Enabled'} />
|
<SettingsCheckBox title={'Search Suggest Enabled'} />
|
||||||
<SettingsCheckBox title={'Spelling Service Enabled'} />
|
<SettingsCheckBox title={'Spelling Service Enabled'} />
|
||||||
<SettingsCheckBox title={'Translation Service Enabled'} />
|
<SettingsCheckBox title={'Translation Service Enabled'} />
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,7 @@ const SystemPage = ({ tab, ipData }: SystemPageProps) => {
|
||||||
chrome.storage.local.get(
|
chrome.storage.local.get(
|
||||||
['systemType', 'configuration', 'timezone', 'locale', 'lat', 'lon'],
|
['systemType', 'configuration', 'timezone', 'locale', 'lat', 'lon'],
|
||||||
(storage) => {
|
(storage) => {
|
||||||
if (storage.systemType === 'custom') {
|
if (storage.systemType !== 'default') {
|
||||||
storage.configuration && setConfiguration(storage.configuration)
|
storage.configuration && setConfiguration(storage.configuration)
|
||||||
storage.timezone && setTimezone(storage.timezone)
|
storage.timezone && setTimezone(storage.timezone)
|
||||||
storage.locale && setLocale(storage.locale)
|
storage.locale && setLocale(storage.locale)
|
||||||
|
|
|
||||||
|
|
@ -16,13 +16,6 @@ const WebRtcPage = ({ tab }: SystemPageProps) => {
|
||||||
})
|
})
|
||||||
}, [])
|
}, [])
|
||||||
|
|
||||||
// chrome.privacy.network.webRTCIPHandlingPolicy.onChange.addListener(function (
|
|
||||||
// details
|
|
||||||
// ) {
|
|
||||||
// console.log(details)
|
|
||||||
// setWebRtcPolicy(details.value)
|
|
||||||
// })
|
|
||||||
|
|
||||||
const changeRadioValue = (e: ChangeEvent<HTMLInputElement>) => {
|
const changeRadioValue = (e: ChangeEvent<HTMLInputElement>) => {
|
||||||
handleWebRtcPolicy(e.target.value)
|
handleWebRtcPolicy(e.target.value)
|
||||||
setWebRtcPolicy(e.target.value)
|
setWebRtcPolicy(e.target.value)
|
||||||
|
|
@ -48,7 +41,7 @@ const WebRtcPage = ({ tab }: SystemPageProps) => {
|
||||||
/>
|
/>
|
||||||
<RadioButton
|
<RadioButton
|
||||||
value={'disable_non_proxied_udp'}
|
value={'disable_non_proxied_udp'}
|
||||||
name={'Disable non-proxied UDP (force proxy)'}
|
name={'Disable Non-Proxied UDP (Force Proxy)'}
|
||||||
description={
|
description={
|
||||||
'Same as above, except allow WebRTC traffic through the default private'
|
'Same as above, except allow WebRTC traffic through the default private'
|
||||||
}
|
}
|
||||||
|
|
@ -57,7 +50,7 @@ const WebRtcPage = ({ tab }: SystemPageProps) => {
|
||||||
/>
|
/>
|
||||||
<RadioButton
|
<RadioButton
|
||||||
value={'default_public_and_private_interfaces'}
|
value={'default_public_and_private_interfaces'}
|
||||||
name={'Default public and private interfaces'}
|
name={'Default Public And Private Interfaces'}
|
||||||
description={
|
description={
|
||||||
'Same as above, except allow WebRTC traffic through the default private'
|
'Same as above, except allow WebRTC traffic through the default private'
|
||||||
}
|
}
|
||||||
|
|
@ -66,28 +59,13 @@ const WebRtcPage = ({ tab }: SystemPageProps) => {
|
||||||
/>
|
/>
|
||||||
<RadioButton
|
<RadioButton
|
||||||
value={'default_public_interface_only'}
|
value={'default_public_interface_only'}
|
||||||
name={'Default public interface only'}
|
name={'Default Public Interface Only'}
|
||||||
description={
|
description={
|
||||||
'Same as above, except allow WebRTC traffic through the default private'
|
'Same as above, except allow WebRTC traffic through the default private'
|
||||||
}
|
}
|
||||||
webRtcPolicy={webRtcPolicy}
|
webRtcPolicy={webRtcPolicy}
|
||||||
onChange={changeRadioValue}
|
onChange={changeRadioValue}
|
||||||
/>
|
/>
|
||||||
{/* <Label>
|
|
||||||
<Radio
|
|
||||||
name="webRtcPolicy"
|
|
||||||
value="disable_non_proxied_udp"
|
|
||||||
onChange={(e) => handleWebRtcPolicy(e.target.value)}
|
|
||||||
checked={webRtcPolicy === 'disable_non_proxied_udp'}
|
|
||||||
/>
|
|
||||||
<Box>
|
|
||||||
<Text sx={{ fontWeight: '700' }}>Disable non proxied udp</Text>
|
|
||||||
<Box sx={{ mb: '12px', fontSize: '12px' }}>
|
|
||||||
Force the use of a proxy, and only allow WebRTC traffic over UDP
|
|
||||||
proxies.
|
|
||||||
</Box>
|
|
||||||
</Box>
|
|
||||||
</Label> */}
|
|
||||||
</Box>
|
</Box>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue