···3535} else if ("serviceWorker" in navigator) {
3636 navigator.serviceWorker.register("service-worker.js").then(
3737 initialise,
3838- () => failure(
3939- location.protocol === "https:"
4040- ? "Failed to start the service worker."
4141- : "Failed to start the service worker, try using HTTPS."
4242- )
3838+ err => {
3939+ console.error(err)
4040+ return failure(
4141+ location.protocol === "https:"
4242+ ? "Failed to start the service worker."
4343+ : "Failed to start the service worker, try using HTTPS."
4444+ )
4545+ }
4346 )
44474548}