Skip to content

Commit 0c3b7bf

Browse files
committed
minor
1 parent d8b7545 commit 0c3b7bf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

services/static-webserver/client/source/class/osparc/DownloadLinkTracker.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,10 @@ qx.Class.define("osparc.DownloadLinkTracker", {
3333
downloadAnchorNode.setAttribute("href", url);
3434
downloadAnchorNode.setAttribute("download", fileName);
3535
downloadAnchorNode.setAttribute("osparc", "downloadFile");
36+
document.body.appendChild(downloadAnchorNode);
3637
this.setDownloading(true);
3738
downloadAnchorNode.click();
38-
downloadAnchorNode.remove();
39+
document.body.removeChild(downloadAnchorNode);
3940
// This is needed to make it work in Firefox
4041
setTimeout(() => this.setDownloading(false), 100);
4142
}

0 commit comments

Comments
 (0)