From dcc6b1b4eff42eca34da0fdeedf1fa360aa4701f Mon Sep 17 00:00:00 2001 From: ed Date: Sat, 16 Aug 2025 21:54:45 +0000 Subject: [PATCH] fix download-selection in old firefox; closes #618 --- copyparty/web/util.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/copyparty/web/util.js b/copyparty/web/util.js index 489cd416..b3a3c145 100644 --- a/copyparty/web/util.js +++ b/copyparty/web/util.js @@ -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'); }