From 3f2189bab53a86c7c4072ae2c6a2479b2ece8cd2 Mon Sep 17 00:00:00 2001 From: z0ccc Date: Sat, 8 Oct 2022 17:25:28 -0400 Subject: [PATCH] misc fixes --- src/Popup/Pages/OtherOptionsPage/index.tsx | 2 +- src/Popup/Pages/SystemPage/index.tsx | 2 +- src/Popup/Pages/WebRtcPage/index.tsx | 28 +++------------------- 3 files changed, 5 insertions(+), 27 deletions(-) diff --git a/src/Popup/Pages/OtherOptionsPage/index.tsx b/src/Popup/Pages/OtherOptionsPage/index.tsx index 6b9089a..e743004 100644 --- a/src/Popup/Pages/OtherOptionsPage/index.tsx +++ b/src/Popup/Pages/OtherOptionsPage/index.tsx @@ -18,9 +18,9 @@ const OtherOptionsPage = ({ tab }: OtherOptionsPageProps) => { Other Options - + diff --git a/src/Popup/Pages/SystemPage/index.tsx b/src/Popup/Pages/SystemPage/index.tsx index 0bb1d10..2286f52 100644 --- a/src/Popup/Pages/SystemPage/index.tsx +++ b/src/Popup/Pages/SystemPage/index.tsx @@ -23,7 +23,7 @@ const SystemPage = ({ tab, ipData }: SystemPageProps) => { chrome.storage.local.get( ['systemType', 'configuration', 'timezone', 'locale', 'lat', 'lon'], (storage) => { - if (storage.systemType === 'custom') { + if (storage.systemType !== 'default') { storage.configuration && setConfiguration(storage.configuration) storage.timezone && setTimezone(storage.timezone) storage.locale && setLocale(storage.locale) diff --git a/src/Popup/Pages/WebRtcPage/index.tsx b/src/Popup/Pages/WebRtcPage/index.tsx index b368de7..e5ba5b5 100644 --- a/src/Popup/Pages/WebRtcPage/index.tsx +++ b/src/Popup/Pages/WebRtcPage/index.tsx @@ -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) => { handleWebRtcPolicy(e.target.value) setWebRtcPolicy(e.target.value) @@ -48,7 +41,7 @@ const WebRtcPage = ({ tab }: SystemPageProps) => { /> { /> { /> - {/* */} ) }