mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-23 07:37:29 +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:
|
_copySelectedDownloadsToClipboard:
|
||||||
function DPV__copySelectedDownloadsToClipboard() {
|
function DPV__copySelectedDownloadsToClipboard() {
|
||||||
let selectedElements = this._richlistbox.selectedItems;
|
let urls = [for (element of this._richlistbox.selectedItems)
|
||||||
// Tycho: let urls = [e._shell.downloadURI for each (e in selectedElements)];
|
element._shell.downloadURI];
|
||||||
let urls = [];
|
|
||||||
|
|
||||||
for each (e in selectedElements) {
|
|
||||||
urls.push(e._shell.downloadURI);
|
|
||||||
}
|
|
||||||
|
|
||||||
Cc["@mozilla.org/widget/clipboardhelper;1"].
|
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() {
|
_getURLFromClipboardData: function DPV__getURLFromClipboardData() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue