diff --git a/src/Linkification/Linkify.coffee b/src/Linkification/Linkify.coffee index d444763f6..fbaa32de0 100755 --- a/src/Linkification/Linkify.coffee +++ b/src/Linkification/Linkify.coffee @@ -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('') %> diff --git a/src/Menu/DownloadLink.coffee b/src/Menu/DownloadLink.coffee index 053b9a81b..3c33e7e84 100755 --- a/src/Menu/DownloadLink.coffee +++ b/src/Menu/DownloadLink.coffee @@ -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