1
0
mirror of https://github.com/thangisme/notes.git synced 2025-01-02 23:26:41 -05:00

Merge pull request #81 from ilivewithian/patch-1

Bug: Can now show single search result.
This commit is contained in:
Patrick Marsceill 2019-02-02 11:31:37 -08:00 committed by GitHub
commit b77d22cf2e
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);