diff --git a/index.html b/index.html
index d011fd4..2d08b58 100644
--- a/index.html
+++ b/index.html
@@ -990,12 +990,19 @@ async function loadFeed() {
}));
}
} catch (_) { /* カスタムソース取得失敗 → デフォルトのみで続行 */ }
- res = await fetch(FEED_API, {
- method: 'POST',
- cache: 'no-store',
- headers: { 'Content-Type': 'application/json', 'Authorization': `Bearer ${apiKey}` },
- body: JSON.stringify({ customFeeds }),
- });
+ 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' });
}