()
| 249 | } |
| 250 | |
| 251 | function clearHistory() { |
| 252 | try { |
| 253 | localStorage.removeItem(HISTORY_KEY); |
| 254 | updateHistoryDisplay(); |
| 255 | updateHistoryVisibility(); |
| 256 | } catch (error) { |
| 257 | } |
| 258 | } |
| 259 | |
| 260 | function formatDate(isoString) { |
| 261 | const date = new Date(isoString); |
no test coverage detected