summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@wolfbeast.com>2019-01-25 12:13:24 +0100
committerwolfbeast <mcwerewolf@wolfbeast.com>2019-01-25 12:13:24 +0100
commit322d0be583c1dbc9d1dc1fe4212aed9c82bbbf7a (patch)
tree073e100696baa6b8677c1c42b633cc20198adda2
parent99f5afe64b393809c4bdee6c92d0769091bd2ca0 (diff)
downloaduxp-322d0be583c1dbc9d1dc1fe4212aed9c82bbbf7a.tar.gz
Fix incorrect file reference in `onDownloadDragStart`
Follow-up to Janek's port in 462332eee018e24d88255c708fa8acb67a717673 where this variable was changed creating a mismatch with surrounding code. This fixes #943.
-rw-r--r--application/palemoon/components/downloads/content/downloads.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/application/palemoon/components/downloads/content/downloads.js b/application/palemoon/components/downloads/content/downloads.js
index ee728406c0..ee1c6902ec 100644
--- a/application/palemoon/components/downloads/content/downloads.js
+++ b/application/palemoon/components/downloads/content/downloads.js
@@ -1038,9 +1038,9 @@ const DownloadsView = {
}
// We must check for existence synchronously because this is a DOM event.
- let file = new FileUtils.File(DownloadsView.controllerForElement(element)
- .download.target.path);
- if (!file.exists()) {
+ let localFile = new FileUtils.File(DownloadsView.controllerForElement(element)
+ .download.target.path);
+ if (!localFile.exists()) {
return;
}