diff --git a/src/lib/stores/game-persistence.svelte.ts b/src/lib/stores/game-persistence.svelte.ts index 409259f..d2b5384 100644 --- a/src/lib/stores/game-persistence.svelte.ts +++ b/src/lib/stores/game-persistence.svelte.ts @@ -114,8 +114,6 @@ export function createGamePersistence( guesses = guessIds .map((bookId) => evaluateGuess(bookId, correctBookId)) .filter((g): g is Guess => g !== null); - // Persist to localStorage so subsequent loads on this device skip the server check - localStorage.setItem(`bibdle-guesses-${date}`, JSON.stringify(guessIds)); } function onChapterGuessCompleted() { diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index 142e097..e8f6ddb 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -114,31 +114,6 @@ } } - // If server date doesn't match client's local date, fetch timezone-correct verse - $effect(() => { - if (!browser) return; - - const localDate = new Date().toLocaleDateString("en-CA"); - if (dailyVerse.date === localDate) return; - - const timezone = Intl.DateTimeFormat().resolvedOptions().timeZone; - - fetch("/api/daily-verse", { - method: "POST", - headers: { "Content-Type": "application/json" }, - body: JSON.stringify({ date: localDate, timezone }), - }) - .then((res) => res.json()) - .then((result) => { - dailyVerse = result.dailyVerse; - correctBookId = result.correctBookId; - correctBook = result.correctBook; - }) - .catch((err) => - console.error("Failed to fetch timezone-correct verse:", err), - ); - }); - // Reload when the user returns to a stale tab on a new calendar day $effect(() => { if (!browser) return; diff --git a/static/favicon.ico b/static/favicon.ico new file mode 100644 index 0000000..4ffd8c8 Binary files /dev/null and b/static/favicon.ico differ