mirror of
https://github.com/9001/copyparty.git
synced 2026-01-17 18:48:37 +10:00
fix download-selection in old firefox; closes #618
This commit is contained in:
@@ -1263,10 +1263,13 @@ function sethash(hv) {
|
|||||||
|
|
||||||
function dl_file(url) {
|
function dl_file(url) {
|
||||||
console.log('DL [%s]', url);
|
console.log('DL [%s]', url);
|
||||||
var o = mknod('a');
|
qsr('#dlfth');
|
||||||
|
var o = mknod('a', 'dlfth');
|
||||||
o.setAttribute('href', url);
|
o.setAttribute('href', url);
|
||||||
o.setAttribute('download', '');
|
o.setAttribute('download', '');
|
||||||
o.click();
|
document.body.appendChild(o);
|
||||||
|
ebi('dlfth').click();
|
||||||
|
qsr('#dlfth');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user