bugfix: service worker path

This commit is contained in:
Jiehong Ma 2021-10-03 17:50:22 +02:00
parent a224fb8f95
commit 7dd7017d4b

View File

@ -6,7 +6,7 @@
<title>Jq Play Offline</title>
<script>
if('serviceWorker' in navigator) {
navigator.serviceWorker.register('/service_worker.js', { scope: '/' })
navigator.serviceWorker.register('/jq_offline/service_worker.js', { scope: '/jq_offline' })
.then(function(registration) {
console.log('Service Worker Registered');
})