made gw-light api more accurate
This commit is contained in:
parent
5046b57c6c
commit
bb5ad6c8d7
File diff suppressed because one or more lines are too long
2
index.js
2
index.js
|
@ -59,7 +59,7 @@ async function gw_api_call(method, params) {
|
||||||
body: JSON.stringify(params),
|
body: JSON.stringify(params),
|
||||||
}
|
}
|
||||||
|
|
||||||
const response = await fetch(`https://www.deezer.com/ajax/gw-light.php?method=${method}&input=3&api_version=1.0&api_token=${checkForm}`, init)
|
const response = await fetch(`https://www.deezer.com/ajax/gw-light.php?method=${method}&input=3&api_version=1.0&api_token=${encodeURIComponent(checkForm)}&cid=${Math.floor(Math.random() * 1e9)}`, init)
|
||||||
const json = await response.json()
|
const json = await response.json()
|
||||||
|
|
||||||
if (json.error.length !== 0) {
|
if (json.error.length !== 0) {
|
||||||
|
|
Loading…
Reference in New Issue