mirror of
https://gitlab.com/RemixDev/deezer-js.git
synced 2025-01-29 17:48:29 +00:00
Fix for auto fallback
This commit is contained in:
parent
71e66b9209
commit
7f82895eea
|
@ -70,7 +70,7 @@ class GW{
|
|||
}
|
||||
throw new GWAPIError(`${method} ${args}:: ${e.name}: ${e.message}`)
|
||||
}
|
||||
if (result_json.error.length) {
|
||||
if (result_json.error.length || result_json.error.DATA_ERROR) {
|
||||
if (result_json.payload && result_json.payload.FALLBACK){
|
||||
Object.keys(result_json.payload.FALLBACK).forEach(key => {
|
||||
args[key] = result_json.payload.FALLBACK[key]
|
||||
|
|
Loading…
Reference in a new issue