Skip to content

Commit

Permalink
Change registration
Browse files Browse the repository at this point in the history
  • Loading branch information
Fran Linde Blázquez committed May 16, 2023
1 parent 8b9ad96 commit c8e759f
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions scripts/main.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,6 @@
// Registro del Service Worker para habilitar la funcionalidad de PWA
if ('serviceWorker' in navigator) {
navigator.serviceWorker
.register('/scripts/service-worker.js')
.then((registration) => {
console.log('Service Worker registrado con éxito:', registration);
})
.catch((error) => {
console.log('Error al registrar el Service Worker:', error);
});
navigator.serviceWorker.register('/scripts/service-worker.js');
}

// Función para pintar los datos de los pilotos en la página
Expand Down

0 comments on commit c8e759f

Please sign in to comment.