Skip to content

Commit

Permalink
Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
qwinsi committed Jul 10, 2024
1 parent c6dbf7e commit 5b155df
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@
<div id="app"></div>
<script>
if (!navigator.serviceWorker.controller) {
navigator.serviceWorker.register("/tex2typst-webapp/sw.js").then(function(reg) {
console.log("Service worker has been registered for scope: " + reg.scope);
});
navigator.serviceWorker.register("/tex2typst-webapp/sw.js");
}
</script>
</body>
Expand Down
4 changes: 1 addition & 3 deletions offline.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@
<div id="app"></div>
<script>
if (!navigator.serviceWorker.controller) {
navigator.serviceWorker.register("/tex2typst-webapp/sw.js").then(function(reg) {
console.log("Service worker has been registered for scope: " + reg.scope);
});
navigator.serviceWorker.register("/tex2typst-webapp/sw.js");
}
</script>
</body>
Expand Down

0 comments on commit 5b155df

Please sign in to comment.