Skip to content

Commit

Permalink
Fix Service Worker path/scope since renaming repo/site
Browse files Browse the repository at this point in the history
  • Loading branch information
FormularSumo committed Oct 9, 2024
1 parent 8d0b929 commit 88c09a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@

<script>
if('serviceWorker' in navigator) {
navigator.serviceWorker.register('/Star-Wars-Galaxy-Collection-Web/sw.js', { scope: '/Star-Wars-Galaxy-Collection-Web/' });
navigator.serviceWorker.register('/Galaxy-Collection-Web/sw.js', { scope: '/Galaxy-Collection-Web/' });
navigator.serviceWorker.addEventListener('controllerchange', () => {
// This will be triggered when the service worker is replaced with a new one -- to ensure that game data is redownloaded if needed
location.reload()
Expand Down

0 comments on commit 88c09a4

Please sign in to comment.