()
| 170 | } |
| 171 | |
| 172 | function getHistory() { |
| 173 | try { |
| 174 | const history = localStorage.getItem(HISTORY_KEY); |
| 175 | return history ? JSON.parse(history) : []; |
| 176 | } catch (error) { |
| 177 | return []; |
| 178 | } |
| 179 | } |
| 180 | |
| 181 | function saveToHistory(cleanedText, originalText) { |
| 182 | if (!isHistoryEnabled() || !cleanedText.trim()) { |
no outgoing calls
no test coverage detected