Fixed bar not going away after selecting default settings

This commit is contained in:
z0ccc 2022-12-29 03:12:17 -05:00
parent 50e53f8507
commit 0765375063

View file

@ -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) {