ver: 1.1.21:
- Lista dei Cataloghi - Gestione Cataloghi in base alla configurazione
This commit is contained in:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user