mirror of
https://gitlab.com/jiehong/jq_offline.git
synced 2024-12-13 09:51:06 +01:00
bugfix: service worker path
This commit is contained in:
parent
a224fb8f95
commit
7dd7017d4b
@ -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');
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user