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

Function deleteHistoryItem

script.js:240–249  ·  view source on GitHub ↗
(itemId)

Source from the content-addressed store, hash-verified

238
239
240 function deleteHistoryItem(itemId) {
241 try {
242 const history = getHistory();
243 const filteredHistory = history.filter(item => item.id !== itemId);
244 localStorage.setItem(HISTORY_KEY, JSON.stringify(filteredHistory));
245 updateHistoryDisplay();
246 updateHistoryVisibility();
247 } catch (error) {
248 }
249 }
250
251 function clearHistory() {
252 try {

Callers 1

Calls 3

getHistoryFunction · 0.85
updateHistoryDisplayFunction · 0.85
updateHistoryVisibilityFunction · 0.85

Tested by

no test coverage detected