mirror of
https://github.com/wukko/cobalt.git
synced 2025-01-12 20:02:19 +01:00
instagram: check if cookie exists before using it in second fallback
This commit is contained in:
parent
1ff49f0669
commit
2561cf168e
1 changed files with 1 additions and 1 deletions
|
@ -201,7 +201,7 @@ async function getPost(id) {
|
||||||
const cookie = getCookie('instagram');
|
const cookie = getCookie('instagram');
|
||||||
|
|
||||||
data = await requestHTML(id);
|
data = await requestHTML(id);
|
||||||
if (!data) data = await requestHTML(id, cookie);
|
if (!data && cookie) data = await requestHTML(id, cookie);
|
||||||
|
|
||||||
if (!data) {
|
if (!data) {
|
||||||
dataType = 'new';
|
dataType = 'new';
|
||||||
|
|
Loading…
Reference in a new issue