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:
commit
b77d22cf2e
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user