Skip to content

Commit

Permalink
Don't send an empty download
Browse files Browse the repository at this point in the history
  • Loading branch information
clbr committed Mar 16, 2012
1 parent 4537e56 commit ef61cf6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions js.c
Expand Up @@ -71,6 +71,8 @@ void printJS() {
"function startdl() {\n"
" var urlbox = document.getElementById('add1');\n"
" var url = urlbox.value;\n"
" if (url.length < 1)\n"
" return;\n"

" fireajax('%1$s?add=' + url);\n"
" urlbox.value = '';\n"
Expand Down

0 comments on commit ef61cf6

Please sign in to comment.