#306 - Reworked search field auto-fill

This commit is contained in:
Simon Cambier
2023-11-01 10:29:41 +01:00
parent 4a4d322f33
commit beb4f191dc
3 changed files with 30 additions and 17 deletions

View File

@@ -217,6 +217,9 @@ class CacheManager {
await database.searchHistory.bulkAdd(history)
}
/**
* @returns The search history, in reverse chronological order
*/
public async getSearchHistory(): Promise<ReadonlyArray<string>> {
const data = (await database.searchHistory.toArray())
.reverse()