Merge branch 'code/test' into 'master'

bugfix: service worker path

See merge request jiehong/jq_offline!10
This commit is contained in:
Jiehong 2021-10-03 15:50:36 +00:00
commit 6ebd7657ac

View File

@ -6,7 +6,7 @@
<title>Jq Play Offline</title> <title>Jq Play Offline</title>
<script> <script>
if('serviceWorker' in navigator) { 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) { .then(function(registration) {
console.log('Service Worker Registered'); console.log('Service Worker Registered');
}) })