Skip to content

Commit

Permalink
Update icons and sw.js source
Browse files Browse the repository at this point in the history
  • Loading branch information
LukasMFR committed Mar 8, 2024
1 parent fc4194d commit b10f0fd
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
Binary file modified icons/icon-192x192.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified icons/icon-512x512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions script.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ document.getElementById('reinitialiser').addEventListener('click', function() {
// Code to register the service worker for your PWA
if ('serviceWorker' in navigator) {
window.addEventListener('load', function() {
navigator.serviceWorker.register('/sw.js').then(function(registration) {
navigator.serviceWorker.register('sw.js').then(function(registration) {
// Registration was successful
console.log('ServiceWorker registration successful with scope: ', registration.scope);
}, function(err) {
// Registration failed
console.log('ServiceWorker registration failed: ', err);
});
});
}
}

0 comments on commit b10f0fd

Please sign in to comment.