Skip to content

Commit

Permalink
Fixed bar not going away after selecting default settings
Browse files Browse the repository at this point in the history
  • Loading branch information
z0ccc committed Dec 29, 2022
1 parent 50e53f8 commit 0765375
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/utils/attachDebugger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 0765375

Please sign in to comment.