Skip to content

Commit 49fe717

Browse files
committedMay 9, 2016
Only show the search input if the search index is not empty
1 parent b7630cf commit 49fe717

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
 

‎static/search.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -171,5 +171,7 @@ var getJSON = function (url, successHandler, errorHandler) {
171171
};
172172

173173
getJSON(baseUrl + '/searchIndex.json', function (status, data) {
174-
setupSearch(data);
174+
if (data.length > 0) {
175+
setupSearch(data);
176+
}
175177
});

0 commit comments

Comments
 (0)
Please sign in to comment.