Fix errors found by JSHint.
This commit is contained in:
parent
c919a8672b
commit
f6c3cef282
@ -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>') %>
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user