From 322d0be583c1dbc9d1dc1fe4212aed9c82bbbf7a Mon Sep 17 00:00:00 2001 From: wolfbeast Date: Fri, 25 Jan 2019 12:13:24 +0100 Subject: 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. --- application/palemoon/components/downloads/content/downloads.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/application/palemoon/components/downloads/content/downloads.js b/application/palemoon/components/downloads/content/downloads.js index ee728406c..ee1c6902e 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; } -- cgit v1.2.3