mirror of
https://github.com/imputnet/cobalt.git
synced 2025-07-18 11:18:28 +00:00
reddit: roll back headers logics change, clean up
This commit is contained in:
parent
71890b6a31
commit
a73ffa3571
@ -59,10 +59,7 @@ export default async function(obj) {
|
|||||||
|
|
||||||
let data = await fetch(
|
let data = await fetch(
|
||||||
url, {
|
url, {
|
||||||
headers: {
|
headers: accessToken && { authorization: `Bearer ${accessToken}` }
|
||||||
authorization: `Bearer ${accessToken}`,
|
|
||||||
accessToken
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
).then(r => r.json() ).catch(() => {});
|
).then(r => r.json() ).catch(() => {});
|
||||||
|
|
||||||
@ -103,9 +100,7 @@ export default async function(obj) {
|
|||||||
if (Number(r.status) === 200) {
|
if (Number(r.status) === 200) {
|
||||||
audio = true
|
audio = true
|
||||||
}
|
}
|
||||||
}).catch(() => {
|
}).catch(() => {})
|
||||||
audio = false
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
|
|
||||||
let id = video.split('/')[3];
|
let id = video.split('/')[3];
|
||||||
|
Loading…
Reference in New Issue
Block a user