Confirm clearing clipboard history

This commit is contained in:
David Heinemeier Hansson committed 2026-05-29 12:57:46 +02:00
1 parent 49ca79081f
commit cf3a481224
3 files changed
+57 -1

No files matched your search

@@ -76,6 +76,10 @@ function removeEntryAt(history, index) {
return next
}
function clearHistory() {
return []
}
function parseEntryJson(line) {
var raw = String(line || "").trim()
if (!raw) return null
@@ -132,6 +136,7 @@ if (typeof module !== "undefined") {
parseHistory: parseHistory,
addEntry: addEntry,
removeEntryAt: removeEntryAt,
clearHistory: clearHistory,
parseEntryJson: parseEntryJson,
searchableText: searchableText,
previewText: previewText,