fix download-selection in old firefox; closes #618

This commit is contained in:
ed 2025-08-16 21:54:45 +00:00
parent 274c074775
commit dcc6b1b4ef

View file

@ -1263,10 +1263,13 @@ function sethash(hv) {
function dl_file(url) {
console.log('DL [%s]', url);
var o = mknod('a');
qsr('#dlfth');
var o = mknod('a', 'dlfth');
o.setAttribute('href', url);
o.setAttribute('download', '');
o.click();
document.body.appendChild(o);
ebi('dlfth').click();
qsr('#dlfth');
}