diff --git a/src/pages/Background/index.js b/src/pages/Background/index.js index 5a0245e..bcade45 100644 --- a/src/pages/Background/index.js +++ b/src/pages/Background/index.js @@ -24,11 +24,6 @@ const attachTab = (tabId) => { ) { chrome.debugger.attach({ tabId: tabId }, '1.3', () => { if (!chrome.runtime.lastError) { - // chrome.debugger.sendCommand( - // { tabId: tabId }, - // 'Emulation.clearTimezoneOverride' - // ) - if (result.timezone) { chrome.debugger.sendCommand( { tabId: tabId }, diff --git a/src/pages/Popup/DebugSettings.js b/src/pages/Popup/DebugSettings.js index 368298a..d01ed77 100644 --- a/src/pages/Popup/DebugSettings.js +++ b/src/pages/Popup/DebugSettings.js @@ -45,14 +45,10 @@ const DebugSettings = ({ type, title, ip, profile, setProfile }) => { value={value} onChange={changeTextValue} style={{ - width: '200px', + width: '206px', }} /> - {/* */} ) } diff --git a/src/pages/Popup/Popup.jsx b/src/pages/Popup/Popup.jsx index d052499..5394f39 100644 --- a/src/pages/Popup/Popup.jsx +++ b/src/pages/Popup/Popup.jsx @@ -1,8 +1,8 @@ import React, { useState, useEffect } from 'react' import Navbar from './Navbar' import IpSettings from './IpSettings' +import ProfileSelect from './ProfileSelect' import DebugSettings from './DebugSettings' -import detachDebugger from '../../utils/detachDebugger' import UserAgentSettings from './UserAgentSettings' const getIP = () => @@ -28,14 +28,6 @@ const Popup = () => { }) }, []) - const changeProfile = (e) => { - detachDebugger() - chrome.storage.sync.set({ - profile: e.target.value, - }) - setProfile(e.target.value) - } - return (
@@ -45,60 +37,7 @@ const Popup = () => { }} > -
- - -
- + { + + const changeProfile = (e) => { + detachDebugger() + chrome.storage.sync.set({ + profile: e.target.value, + }) + setProfile(e.target.value) + } + + return ( +
+ + +
+ ) +} + +export default ProfileSelect diff --git a/src/pages/Popup/UserAgentSettings.js b/src/pages/Popup/UserAgentSettings.js index f220754..bda977a 100644 --- a/src/pages/Popup/UserAgentSettings.js +++ b/src/pages/Popup/UserAgentSettings.js @@ -85,11 +85,11 @@ const UserAgentSettings = () => {