// SPDX-License-Identifier: AGPL-3.0-or-later /** * The homescreen's debug channel. * * Wraps the chrome-wide `makeDebugLog`, so this follows the same convention as * every other subsystem: off unless asked for, and switchable at runtime by * setting `globalThis.__homeDebug` or `localStorage["beaver.debug.home"] = "1"`. * * On a phone neither of those is reachable without a console, so index.js also * turns it on for `?debug` in the URL and which composes with `?reset`: * * beaver://homescreen/index.html?reset&debug */ import { makeDebugLog } from "beaver://shared/dbus/bus.js"; export const homeLog = makeDebugLog("home", "home");