ver: 1.1.21:

- Lista dei Cataloghi
- Gestione Cataloghi in base alla configurazione
This commit is contained in:
Surya Paolo
2025-02-10 22:48:53 +01:00
parent 4da257e43a
commit 3d0e307e42
85 changed files with 1419 additions and 547 deletions

View File

@@ -34,7 +34,7 @@ self.addEventListener('activate', (event) => {
});
const APP_VERSION = "1.1.20";
const APP_VERSION = "1.1.21";
console.log(' [ VER-' + APP_VERSION + ' ] _---------________------ PAO: this is my custom service worker');
@@ -295,13 +295,13 @@ if (workbox) {
return response;
} catch (error) {
console.error('[Service Worker] Fetch error:', error);
console.error('[Service Worker] Fetch error:', error, request);
// Personalizza la risposta di errore in base al tipo di richiesta
if (request.headers.get('Accept')?.includes('application/json')) {
return new Response(JSON.stringify({
error: 'Network error',
message: 'Service unavailable'
message: 'Servizio non disponibile, riprovare !'
}), {
status: 503,
headers: {