assets/js/just-the-docs.js in just-the-docs-0.2.2 vs assets/js/just-the-docs.js in just-the-docs-0.2.3

- old
+ new

@@ -52,11 +52,11 @@ { source = s.src; } } jsPath = source.replace('just-the-docs.js', ''); - jsonPath = jsPath + '/search-data.json'; + jsonPath = jsPath + 'search-data.json'; var request = new XMLHttpRequest(); request.open('GET', jsonPath, true); request.onload = function() { @@ -106,10 +106,10 @@ if (query === '') { hideResults(); } 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); for (var i in results) {