diff --git a/src/browser/register.ts b/src/browser/register.ts index c975df87..607c8e92 100644 --- a/src/browser/register.ts +++ b/src/browser/register.ts @@ -1,3 +1,4 @@ +import { logger } from "@coder/logger" import { getOptions, Options, normalize } from "../common/util" import "./pages/error.css" @@ -11,7 +12,7 @@ export async function registerServiceWorker(navigator: Navigator, path: string, }) console.log("[Service Worker] registered") } catch (error) { - console.error(`[Service Worker] failed to register: ${error.message}`) + logger.error(`[Service Worker] failed to register: ${error.message}`) } }