From 10dc61fcdc8a41d9d909aff856a7200b5a12f178 Mon Sep 17 00:00:00 2001 From: z0ccc Date: Mon, 30 Jan 2023 01:58:29 -0500 Subject: [PATCH] Fixed debugger bar not disappearing --- src/{utils => background}/attachDebugger.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) rename src/{utils => background}/attachDebugger.ts (93%) 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) {