Removed unused code
This commit is contained in:
parent
3f2189bab5
commit
e84be393f3
4 changed files with 3 additions and 21 deletions
|
|
@ -1,8 +1,7 @@
|
||||||
import { useState, useEffect, ChangeEvent } from 'react'
|
import { useState, useEffect, ChangeEvent } from 'react'
|
||||||
import { Box, Label, Radio, Flex, Input, Select, Divider } from 'theme-ui'
|
import { Box, Label, Radio, Flex, Input, Select } from 'theme-ui'
|
||||||
import userAgents from '../../../utils/userAgents'
|
import userAgents from '../../../utils/userAgents'
|
||||||
import detachDebugger from '../../../utils/detachDebugger'
|
import detachDebugger from '../../../utils/detachDebugger'
|
||||||
import SettingsCheckBox from '../SettingsPage/SettingsCheckBox'
|
|
||||||
|
|
||||||
interface UserAgentPageProps {
|
interface UserAgentPageProps {
|
||||||
tab: string
|
tab: string
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,5 @@
|
||||||
import { useState, useEffect, ChangeEvent } from 'react'
|
import { ChangeEvent } from 'react'
|
||||||
import { Box, Label, Radio, Text } from 'theme-ui'
|
import { Box, Label, Radio, Text } from 'theme-ui'
|
||||||
import handleWebRtcPolicy from './handleWebRtcPolicy'
|
|
||||||
|
|
||||||
interface RadioButtonProps {
|
interface RadioButtonProps {
|
||||||
value: string
|
value: string
|
||||||
|
|
@ -17,21 +16,6 @@ const RadioButton = ({
|
||||||
webRtcPolicy,
|
webRtcPolicy,
|
||||||
onChange,
|
onChange,
|
||||||
}: RadioButtonProps) => {
|
}: RadioButtonProps) => {
|
||||||
// const [webRtcPolicy, setWebRtcPolicy] = useState('default')
|
|
||||||
|
|
||||||
// useEffect(() => {
|
|
||||||
// chrome.storage.local.get(['webRtcPolicy'], (storage) => {
|
|
||||||
// storage.webRtcPolicy && setWebRtcPolicy(storage.webRtcPolicy)
|
|
||||||
// })
|
|
||||||
// }, [])
|
|
||||||
|
|
||||||
// chrome.privacy.network.webRTCIPHandlingPolicy.onChange.addListener(function (
|
|
||||||
// details
|
|
||||||
// ) {
|
|
||||||
// console.log(details)
|
|
||||||
// setWebRtcPolicy(details.value)
|
|
||||||
// })
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<Label sx={{ cursor: 'pointer' }}>
|
<Label sx={{ cursor: 'pointer' }}>
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
import { useState, useEffect, ChangeEvent } from 'react'
|
import { useState, useEffect, ChangeEvent } from 'react'
|
||||||
import { Box, Label, Radio, Text } from 'theme-ui'
|
import { Box } from 'theme-ui'
|
||||||
import handleWebRtcPolicy from './handleWebRtcPolicy'
|
import handleWebRtcPolicy from './handleWebRtcPolicy'
|
||||||
import RadioButton from './RadioButton'
|
import RadioButton from './RadioButton'
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,6 @@ import {
|
||||||
Globe,
|
Globe,
|
||||||
Sliders,
|
Sliders,
|
||||||
Settings,
|
Settings,
|
||||||
ExternalLink,
|
|
||||||
} from 'react-feather'
|
} from 'react-feather'
|
||||||
import TabItem from './TabItem'
|
import TabItem from './TabItem'
|
||||||
import SystemPage from './Pages/SystemPage'
|
import SystemPage from './Pages/SystemPage'
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue