kopia lustrzana https://github.com/manuelkasper/sotlas-frontend
Ignore (expected) error for HEAD request for AZ file
rodzic
3a61bce076
commit
c49b8ca82c
|
@ -128,7 +128,7 @@ export default {
|
||||||
if (!this.reference) {
|
if (!this.reference) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
axios.head(this.makeAzUrlForType('gpx'))
|
axios.head(this.makeAzUrlForType('gpx'), { ignoreError: true })
|
||||||
.then(response => {
|
.then(response => {
|
||||||
if (response.status === 200) {
|
if (response.status === 200) {
|
||||||
this.haveAz = true
|
this.haveAz = true
|
||||||
|
|
|
@ -86,7 +86,7 @@ let lastError = null
|
||||||
axios.interceptors.response.use(response => {
|
axios.interceptors.response.use(response => {
|
||||||
return response
|
return response
|
||||||
}, error => {
|
}, error => {
|
||||||
if ((!lastError || new Date().getTime() - lastError > 9000) && (!error.response || error.response.status !== 404) && myVue) {
|
if (!error.config.ignoreError && (!lastError || new Date().getTime() - lastError > 9000) && (!error.response || error.response.status !== 404) && myVue) {
|
||||||
// SnackbarProgrammatic.open doesn't work with Webpack 5
|
// SnackbarProgrammatic.open doesn't work with Webpack 5
|
||||||
// See https://github.com/buefy/buefy/issues/2299
|
// See https://github.com/buefy/buefy/issues/2299
|
||||||
myVue.$buefy.snackbar.open({
|
myVue.$buefy.snackbar.open({
|
||||||
|
|
Ładowanie…
Reference in New Issue