Fix errors found by JSHint.

This commit is contained in:
ccd0 2014-12-14 12:31:52 -08:00
parent c919a8672b
commit f6c3cef282
2 changed files with 2 additions and 2 deletions

View File

@ -317,7 +317,7 @@ Linkify =
embed = file
break
break if embed
return div.textContent = "ERROR: Not a valid filetype" unless embed
return el.textContent = "ERROR: Not a valid filetype" unless embed
switch embed.type
when 'video/mp4', 'video/webm', 'video/ogv'
$.extend el, <%= html('<video controls loop><source type="video/mp4"><source type="video/webm"></video>') %>

View File

@ -15,7 +15,7 @@ DownloadLink =
@href = URL.createObjectURL blob
@click()
else
new Notice 'error', "Could not download #{file.URL}", 30
new Notice 'error', "Could not download #{@href}", 30
Menu.menu.addEntry
el: a