Fixed add-anime-lists patch

This commit is contained in:
2017-06-22 14:32:38 +02:00
parent 067f6bfa2a
commit 4ba516f8f3
4 changed files with 8 additions and 5 deletions

View File

@ -65,8 +65,8 @@ export function search(arn: AnimeNotifier, search: HTMLInputElement, e: Keyboard
history.replaceState("search", null, "/search/" + term)
}
if(!term) {
arn.app.content.innerHTML = "No search term."
if(!term || term.length < 2) {
arn.app.content.innerHTML = "Please enter at least 2 characters to start searching."
return
}