summaryrefslogtreecommitdiff
path: root/discover-url.coffee
diff options
context:
space:
mode:
Diffstat (limited to 'discover-url.coffee')
-rw-r--r--discover-url.coffee2
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