Fix API Callback looping if fallback is enabled
This commit is contained in:
parent
63e735c9b7
commit
ffa3788d47
|
@ -793,14 +793,14 @@ export default Vue.extend({
|
||||||
console.log(err)
|
console.log(err)
|
||||||
const errorMessage = this.$t('Invidious API Error (Click to copy)')
|
const errorMessage = this.$t('Invidious API Error (Click to copy)')
|
||||||
this.showToast({
|
this.showToast({
|
||||||
message: `${errorMessage}: ${err.responseText}`,
|
message: `${errorMessage}: ${err.responseJSON.error}`,
|
||||||
time: 10000,
|
time: 10000,
|
||||||
action: () => {
|
action: () => {
|
||||||
navigator.clipboard.writeText(err)
|
navigator.clipboard.writeText(err.responseJSON.error)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
if (this.backendFallback) {
|
if (this.backendFallback && this.backendPreference === 'invidious') {
|
||||||
this.showToast({
|
this.showToast({
|
||||||
message: this.$t('Falling back to the local API')
|
message: this.$t('Falling back to the local API')
|
||||||
})
|
})
|
||||||
|
@ -827,7 +827,7 @@ export default Vue.extend({
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
if (this.backendFallback) {
|
if (this.backendFallback && this.backendPreference === 'local') {
|
||||||
this.showToast({
|
this.showToast({
|
||||||
message: this.$t('Falling back to the Invidious API')
|
message: this.$t('Falling back to the Invidious API')
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue