mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-06 07:48:38 +09:00
[PALEMOON] Fix for loops in allDownloadsViewOverlay.js
(SyntaxError: missing ] after element list)
This commit is contained in:
parent
0f3de472c4
commit
eb05e51460
1 changed files with 6 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue