/** * Boot globals for background (shared by service worker and Firefox scripts context). * Loaded first so DEBUG_VERBOSE and browser are available to logs.js and others. */ const SW_VERSION = 3; // increment to force service worker reload detection /** Set to true for super detailed debug logging. */ const DEBUG_VERBOSE = false; const browser = (typeof chrome !== 'undefined' && chrome.runtime?.connectNative) ? chrome : (globalThis.browser ?? chrome);