From 0ef7b8eb068408a4268406fc9160fb794f120917 Mon Sep 17 00:00:00 2001 From: Tony Air Date: Thu, 2 Apr 2020 07:23:45 +0700 Subject: [PATCH] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 075a078..04c3602 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ composer require a2nt/silverstripe-progressivewebapp if ('serviceWorker' in navigator) { var baseHref = (document.getElementsByTagName('base')[0] || {}).href; if(baseHref){ - navigator.serviceWorker.register(baseHref + 'service-worker.js').then(function() { + navigator.serviceWorker.register(baseHref + 'sw.js').then(function() { console.log('Service Worker Registered'); }); }