style: apply linter suggestions
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
// Service Worker registration — runs after page load.
|
||||
if ('serviceWorker' in navigator) {
|
||||
window.addEventListener('load', function () {
|
||||
window.addEventListener('load', () => {
|
||||
navigator.serviceWorker
|
||||
.register('/sw.js')
|
||||
.then(function () {
|
||||
.then(() => {
|
||||
/* registered */
|
||||
})
|
||||
.catch(function (err) {
|
||||
.catch((err) => {
|
||||
console.log('Service Worker registration failed:', err);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user