diff --git a/src/pages/Popup/DebugSettings.js b/src/pages/Popup/DebugSettings.js index d01ed77..e045bec 100644 --- a/src/pages/Popup/DebugSettings.js +++ b/src/pages/Popup/DebugSettings.js @@ -6,7 +6,10 @@ const DebugSettings = ({ type, title, ip, profile, setProfile }) => { const [value, setValue] = useState('') useEffect(() => { - if (profile === 'match') { + if (profile === 'none') { + setValue('') + chrome.storage.sync.set({ [type]: '' }) + } else if (profile === 'match') { if (ip) { const ipTypeValue = type === 'locale' ? countryLocales[ip.countryCode].locale : ip[type] diff --git a/src/utils/profiles.js b/src/utils/profiles.js index 4ea74dd..235715e 100644 --- a/src/utils/profiles.js +++ b/src/utils/profiles.js @@ -1,5 +1,4 @@ const profiles = { - none: { timezone: '', locale: '', lat: '', lon: '' }, baghdad: { name: 'Baghdad', timezone: 'Asia/Baghdad',