mirror of
https://github.com/9001/copyparty.git
synced 2025-08-17 09:02:15 -06:00
fix download-selection in old firefox; closes #618
This commit is contained in:
parent
274c074775
commit
dcc6b1b4ef
|
@ -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');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue