refactor: use logger in serviceworker

This commit is contained in:
Joe Previte 2021-02-11 15:05:18 -07:00
parent 06aeca0a83
commit a9f88affa9
No known key found for this signature in database
GPG Key ID: 2C91590C6B742C24
1 changed files with 2 additions and 1 deletions

View File

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