The reading history to save.
export function saveReadingHistory(history: ReadingHistory): void {
try {
storage.setItem(STORAGE_KEYS.READING_HISTORY, JSON.stringify(history));
console.debug(
"[Storage] Saved reading history:",
history.entries.length,
"entries",
);
} catch (error) {
console.error("[Storage] Failed to save reading history:", error);
}
}
Saves reading history.