diff options
author | wolfbeast <mcwerewolf@wolfbeast.com> | 2019-01-25 12:13:24 +0100 |
---|---|---|
committer | wolfbeast <mcwerewolf@wolfbeast.com> | 2019-01-25 12:13:24 +0100 |
commit | 322d0be583c1dbc9d1dc1fe4212aed9c82bbbf7a (patch) | |
tree | 073e100696baa6b8677c1c42b633cc20198adda2 /application/palemoon | |
parent | 99f5afe64b393809c4bdee6c92d0769091bd2ca0 (diff) | |
download | uxp-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.
Diffstat (limited to 'application/palemoon')
-rw-r--r-- | application/palemoon/components/downloads/content/downloads.js | 6 |
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; } |