style: apply linter suggestions

This commit is contained in:
Edouard Vanbelle
2026-04-07 22:50:42 +02:00
parent 1ce29c101d
commit a4266a6e93
33 changed files with 444 additions and 437 deletions
+3 -3
View File
@@ -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);
});
});