MCPcopy Create free account
hub / github.com/TheJoWo/Clean-Clode / getHistory

Function getHistory

script.js:172–179  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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()) {

Callers 4

saveToHistoryFunction · 0.85
updateHistoryVisibilityFunction · 0.85
deleteHistoryItemFunction · 0.85
updateHistoryDisplayFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected