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:
parent
06aeca0a83
commit
a9f88affa9
@ -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}`)
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user