diff --git a/train.js b/train.js index 239a7a5..a478958 100644 --- a/train.js +++ b/train.js @@ -53,6 +53,11 @@ function rebuildSuggestions() { }) } + // Trim the amount of results displayed + if (suggestions.length > 100) { + suggestions.splice(100) + } + suggestions.forEach(function (suggestion, index) { var suggestionLi = document.createElement('li') suggestionsArea.appendChild(suggestionLi)