()
| 346 | // --- Search --------------------------------------------------- |
| 347 | |
| 348 | async function ensureAllNotesLoaded() { |
| 349 | await Promise.all(NOTES.map(async (note) => { |
| 350 | if (!noteCache.has(note.path)) { |
| 351 | const res = await fetch(note.path); |
| 352 | if (!res.ok) return; |
| 353 | noteCache.set(note.path, await res.text()); |
| 354 | } |
| 355 | })); |
| 356 | } |
| 357 | |
| 358 | async function handleSearchInput() { |
| 359 | const q = searchInput.value.trim().toLowerCase(); |
no outgoing calls
no test coverage detected