diff options
author | Yaohan Chen <yaohan.chen@gmail.com> | 2014-04-05 00:26:38 -0400 |
---|---|---|
committer | Yaohan Chen <yaohan.chen@gmail.com> | 2014-04-05 00:26:38 -0400 |
commit | afc97d764b5d3b6279d05fadc3e5aea593d62eaf (patch) | |
tree | a1e7e8451155060cbac2834cafad69705f6e43e3 /discover-url.coffee | |
parent | 9bd67f7b1e29ac08ea5bc9085c8e662d525b7c53 (diff) | |
download | hib-dlagent-afc97d764b5d3b6279d05fadc3e5aea593d62eaf.tar.gz hib-dlagent-afc97d764b5d3b6279d05fadc3e5aea593d62eaf.zip |
Minor changes in PhantomJS script
Diffstat (limited to 'discover-url.coffee')
-rw-r--r-- | discover-url.coffee | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/discover-url.coffee b/discover-url.coffee index bd7bcba..bd64ffd 100644 --- a/discover-url.coffee +++ b/discover-url.coffee @@ -14,7 +14,7 @@ page.open listing_page, (status) -> url = page.evaluate (filename) -> # Characters in filename may need to be escaped for use in a selector found = document.querySelector ".downloads.linux a[href*='#{filename}']" - found and found.getAttribute('href') + found?.getAttribute('href') , filename util.log "Found URL: #{url}" if url |