diff --git a/src/utils/attachDebugger.ts b/src/background/attachDebugger.ts similarity index 93% rename from src/utils/attachDebugger.ts rename to src/background/attachDebugger.ts index 08aa5e5..ce68ec9 100644 --- a/src/utils/attachDebugger.ts +++ b/src/background/attachDebugger.ts @@ -22,8 +22,9 @@ const attachDebugger = (tabId: number) => { storage.lon || storage.locale || storage.userAgent) && - (!storage.locationBrowserDefault || !storage.userAgentBrowserDefault) + ((storage.locationBrowserDefault !== undefined && !storage.locationBrowserDefault) || (storage.userAgentBrowserDefault !== undefined && !storage.userAgentBrowserDefault)) ) { + chrome.debugger.attach({ tabId: tabId }, '1.3', () => { if (!chrome.runtime.lastError) { if (!storage.locationBrowserDefault) {