parent
5b151296e2
commit
14830b867b
1 changed files with 9 additions and 2 deletions
|
@ -91,8 +91,15 @@ L.U.Xhr = L.Evented.extend({
|
||||||
actions: actions,
|
actions: actions,
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
if (xhr.status !== 0) {
|
if (xhr.status === 0) {
|
||||||
// 0 === request cut by user
|
// 0 === request cut by user or CORS
|
||||||
|
self.ui.alert({
|
||||||
|
content: L._(
|
||||||
|
'Issue reaching that URL (network problem or CORS protection)'
|
||||||
|
),
|
||||||
|
level: 'error',
|
||||||
|
})
|
||||||
|
} else {
|
||||||
self.ui.alert({ content: L._('Problem in the response'), level: 'error' })
|
self.ui.alert({ content: L._('Problem in the response'), level: 'error' })
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue