MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / saveHistory

Method saveHistory

src/lib/searchHistory.js:36–42  ·  view source on GitHub ↗

* Save history to localStorage

()

Source from the content-addressed store, hash-verified

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

Callers 2

addToHistoryMethod · 0.95
clearHistoryMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected