summaryrefslogtreecommitdiff
path: root/templates/layouts
diff options
context:
space:
mode:
Diffstat (limited to 'templates/layouts')
-rw-r--r--templates/layouts/default.html.ep5
1 files changed, 1 insertions, 4 deletions
diff --git a/templates/layouts/default.html.ep b/templates/layouts/default.html.ep
index 4b11a06..00d446a 100644
--- a/templates/layouts/default.html.ep
+++ b/templates/layouts/default.html.ep
@@ -120,10 +120,7 @@
<script>
if ('serviceWorker' in navigator) {
window.addEventListener('load', () => {
- navigator.serviceWorker.register('/service-worker.js')
- .then((reg) => {
- console.log('Service worker registered.', reg);
- });
+ navigator.serviceWorker.register('/service-worker.js');
});
}
</script>