mirror of https://github.com/coder/code-server.git
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 { 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}`)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue