From 0765375063ae2835d7af1e81625e850406b81c27 Mon Sep 17 00:00:00 2001 From: z0ccc Date: Thu, 29 Dec 2022 03:12:17 -0500 Subject: [PATCH] Fixed bar not going away after selecting default settings --- src/utils/attachDebugger.ts | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/utils/attachDebugger.ts b/src/utils/attachDebugger.ts index a56cc18..bbbbc58 100644 --- a/src/utils/attachDebugger.ts +++ b/src/utils/attachDebugger.ts @@ -16,11 +16,12 @@ const attachDebugger = (tabId: number) => { ], (storage) => { if ( - storage.timezone || - storage.lat || - storage.lon || - storage.locale || - storage.userAgent + (storage.timezone || + storage.lat || + storage.lon || + storage.locale || + storage.userAgent) && + !storage.userAgentBrowserDefault ) { chrome.debugger.attach({ tabId: tabId }, '1.3', () => { if (!chrome.runtime.lastError) {