mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-06 15:58:39 +09:00
[PALEMOON] [frontend vs backend] Downloads: Fix - the context menu - "Copy Download Link"
Issue #121
This commit is contained in:
parent
45a39c1ff8
commit
e509b0d532
1 changed files with 3 additions and 8 deletions
|
|
@ -1394,16 +1394,11 @@ DownloadsPlacesView.prototype = {
|
|||
|
||||
_copySelectedDownloadsToClipboard:
|
||||
function DPV__copySelectedDownloadsToClipboard() {
|
||||
let selectedElements = this._richlistbox.selectedItems;
|
||||
// Tycho: let urls = [e._shell.downloadURI for each (e in selectedElements)];
|
||||
let urls = [];
|
||||
|
||||
for each (e in selectedElements) {
|
||||
urls.push(e._shell.downloadURI);
|
||||
}
|
||||
let urls = [for (element of this._richlistbox.selectedItems)
|
||||
element._shell.downloadURI];
|
||||
|
||||
Cc["@mozilla.org/widget/clipboardhelper;1"].
|
||||
getService(Ci.nsIClipboardHelper).copyString(urls.join("\n"), document);
|
||||
getService(Ci.nsIClipboardHelper).copyString(urls.join("\n"));
|
||||
},
|
||||
|
||||
_getURLFromClipboardData: function DPV__getURLFromClipboardData() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue