|
@@ -70,11 +70,6 @@ document.addEventListener("DOMContentLoaded", () => {
|
|
|
});
|
|
|
|
|
|
if ('serviceWorker' in navigator) {
|
|
|
- navigator.serviceWorker
|
|
|
- .register('/service-worker')
|
|
|
- .then(function(registration) {
|
|
|
- console.log("ServiceWorker registration successful with scope: ", registration.scope);
|
|
|
- }).catch(function(err) {
|
|
|
- console.log("ServiceWorker registration failed: ", err);
|
|
|
- });
|
|
|
+ // TODO(trevor) does it matter if this fails?
|
|
|
+ navigator.serviceWorker.register('/service-worker')
|
|
|
}
|