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 { 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 detachDebugger from '../../../utils/detachDebugger'
|
||||
import SettingsCheckBox from '../SettingsPage/SettingsCheckBox'
|
||||
|
||||
interface UserAgentPageProps {
|
||||
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 handleWebRtcPolicy from './handleWebRtcPolicy'
|
||||
|
||||
interface RadioButtonProps {
|
||||
value: string
|
||||
|
|
@ -17,21 +16,6 @@ const RadioButton = ({
|
|||
webRtcPolicy,
|
||||
onChange,
|
||||
}: 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 (
|
||||
<>
|
||||
<Label sx={{ cursor: 'pointer' }}>
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import { useState, useEffect, ChangeEvent } from 'react'
|
||||
import { Box, Label, Radio, Text } from 'theme-ui'
|
||||
import { Box } from 'theme-ui'
|
||||
import handleWebRtcPolicy from './handleWebRtcPolicy'
|
||||
import RadioButton from './RadioButton'
|
||||
|
||||
|
|
|
|||
|
|
@ -9,7 +9,6 @@ import {
|
|||
Globe,
|
||||
Sliders,
|
||||
Settings,
|
||||
ExternalLink,
|
||||
} from 'react-feather'
|
||||
import TabItem from './TabItem'
|
||||
import SystemPage from './Pages/SystemPage'
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue