Skip to content

Commit

Permalink
Fix service worker not getting registered
Browse files Browse the repository at this point in the history
  • Loading branch information
Gyanreyer committed Jun 3, 2023
1 parent af1faa3 commit 413f571
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.webc
Expand Up @@ -22,7 +22,7 @@ meta:
<!-- Critical JS and CSS -->
<script @raw="getBundle('js', 'critical')" type="module" webc:keep></script>
<script webc:bucket="critical">
// navigator.serviceWorker.register("/sw.js");
navigator.serviceWorker.register("/sw.js");
// Ask for persistent storage so it won't be lost when the browser is closed on iOS
if (navigator.storage && navigator.storage.persist) {
navigator.storage.persist();
Expand Down

0 comments on commit 413f571

Please sign in to comment.