From f6c3cef28270ad0d71d0bd5cac73aa605f2629c3 Mon Sep 17 00:00:00 2001 From: ccd0 Date: Sun, 14 Dec 2014 12:31:52 -0800 Subject: [PATCH] Fix errors found by JSHint. --- src/Linkification/Linkify.coffee | 2 +- src/Menu/DownloadLink.coffee | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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