mirror of
https://github.com/snachodog/just-the-docs.git
synced 2025-04-06 20:21:22 -06:00
Bug: Can now show single search result.
This commit is contained in:
parent
eaafeee675
commit
5b8ff78bb6
@ -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…
x
Reference in New Issue
Block a user