1
0
mirror of https://git.tuxpa.in/a/code-server.git synced 2024-12-27 04:35:25 +00:00

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

View File

@ -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}`)
}
}