* Save history to localStorage
()
| 34 | * Save history to localStorage |
| 35 | */ |
| 36 | saveHistory() { |
| 37 | try { |
| 38 | localStorage.setItem(HISTORY_KEY, JSON.stringify(this.history)); |
| 39 | } catch (error) { |
| 40 | console.warn("Failed to save search history:", error); |
| 41 | } |
| 42 | } |
| 43 | |
| 44 | /** |
| 45 | * Add item to history |
no outgoing calls
no test coverage detected