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