fix(offline): IndexedDB fallback when API returns empty on /recipes & /season/[month]

These two pages only fell back to IndexedDB when navigator.onLine was
false. On mobile the device often reports online while the origin is
flaky (502 / slow cellular / cached shell with stale connectivity), so
the API call returned nothing and the pages rendered 0 recipes. Now
both also fall back to IndexedDB when the API attempt yields an empty
list, matching the pattern already used by [name]/+page.ts and
icon/[icon]/+page.ts.
This commit is contained in:
2026-05-08 16:01:59 +02:00
parent eb2ffac536
commit 0814803fc7
3 changed files with 61 additions and 29 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "homepage",
"version": "1.67.4",
"version": "1.67.5",
"private": true,
"type": "module",
"scripts": {