From 0d0cf693ac1d8c9429959a41c118e335d0d94a55 Mon Sep 17 00:00:00 2001 From: "Matt A. Tobin" Date: Mon, 9 Apr 2018 08:32:30 -0400 Subject: [PALEMOON] Fix for loops in allDownloadsViewOverlay.js (SyntaxError: missing ] after element list) --- .../components/downloads/content/allDownloadsViewOverlay.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'application/palemoon') diff --git a/application/palemoon/components/downloads/content/allDownloadsViewOverlay.js b/application/palemoon/components/downloads/content/allDownloadsViewOverlay.js index e1d0e75d4..51f32601a 100644 --- a/application/palemoon/components/downloads/content/allDownloadsViewOverlay.js +++ b/application/palemoon/components/downloads/content/allDownloadsViewOverlay.js @@ -1408,7 +1408,12 @@ DownloadsPlacesView.prototype = { _copySelectedDownloadsToClipboard: function DPV__copySelectedDownloadsToClipboard() { let selectedElements = this._richlistbox.selectedItems; - let urls = [e._shell.downloadURI for each (e in selectedElements)]; + // Tycho: let urls = [e._shell.downloadURI for each (e in selectedElements)]; + let urls = []; + + for each (e in selectedElements) { + urls.push(e._shell.downloadURI); + } Cc["@mozilla.org/widget/clipboardhelper;1"]. getService(Ci.nsIClipboardHelper).copyString(urls.join("\n"), document); -- cgit v1.2.3