From afc97d764b5d3b6279d05fadc3e5aea593d62eaf Mon Sep 17 00:00:00 2001 From: Yaohan Chen Date: Sat, 5 Apr 2014 00:26:38 -0400 Subject: Minor changes in PhantomJS script --- discover-url.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'discover-url.coffee') 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 -- cgit v1.2.3-70-g09d2