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.
This commit is contained in:
wolfbeast 2019-01-25 12:13:24 +01:00 committed by Roy Tam
commit c2496a58d0

View file

@ -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;
}