Skip to content

Commit

Permalink
service_worker_path_update_to_root (#380)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lungsangg authored Oct 8, 2024
2 parents 17a1394 + b586dc5 commit 0bfd140
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
File renamed without changes.
2 changes: 1 addition & 1 deletion templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@
<script>
if ('serviceWorker' in navigator) {
window.addEventListener('load', function() {
navigator.serviceWorker.register("{% static 'serviceWorker.js' %}")
navigator.serviceWorker.register("{%'/serviceWorker.js' %}")
.then(function(registration) {
console.log('Service Worker registered with scope:', registration.scope);
})
Expand Down

0 comments on commit 0bfd140

Please sign in to comment.