1
0
mirror of https://github.com/thangisme/notes.git synced 2025-02-21 06:57:46 -05:00

Bug: Can now show single search result.

This commit is contained in:
Rob White 2019-01-29 13:39:20 +00:00 committed by GitHub
parent eaafeee675
commit 5b8ff78bb6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -108,7 +108,7 @@ function initSearch() {
} else {
var results = index.search(query);
if (results.length > 1) {
if (results.length > 0) {
searchResults.classList.add('active');
var resultsList = document.createElement('ul');
searchResults.appendChild(resultsList);