Ajout du bon code d'erreur pour vérifier si le backend est down

This commit is contained in:
FyloZ 2021-05-20 13:16:53 -04:00
parent d332e8239c
commit 6152e09316
1 changed files with 1 additions and 1 deletions

View File

@ -121,5 +121,5 @@ export class ErrorHandler {
}
function isServerOfflineError(response: any): boolean {
return response.status === 0 && response.statusText === 'Unknown Error'
return response.status === 0 || response.status === 502
}