parent
dcb0274de7
commit
7d8297a243
|
|
@ -990,12 +990,19 @@ async function loadFeed() {
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
} catch (_) { /* カスタムソース取得失敗 → デフォルトのみで続行 */ }
|
} catch (_) { /* カスタムソース取得失敗 → デフォルトのみで続行 */ }
|
||||||
|
try {
|
||||||
res = await fetch(FEED_API, {
|
res = await fetch(FEED_API, {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
cache: 'no-store',
|
cache: 'no-store',
|
||||||
headers: { 'Content-Type': 'application/json', 'Authorization': `Bearer ${apiKey}` },
|
headers: { 'Content-Type': 'application/json', 'Authorization': `Bearer ${apiKey}` },
|
||||||
body: JSON.stringify({ customFeeds }),
|
body: JSON.stringify({ customFeeds }),
|
||||||
});
|
});
|
||||||
|
} catch (_) {
|
||||||
|
res = await fetch(FEED_API, { cache: 'no-store' });
|
||||||
|
}
|
||||||
|
if (res.status === 401) {
|
||||||
|
res = await fetch(FEED_API, { cache: 'no-store' });
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
res = await fetch(FEED_API, { cache: 'no-store' });
|
res = await fetch(FEED_API, { cache: 'no-store' });
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue