Skip to content
This repository was archived by the owner on Jan 7, 2020. It is now read-only.

Commit cb75848

Browse files
authored
Merge pull request #163 from BarakStout/firefox-issue
Firefox issue
2 parents 2625d82 + d29c004 commit cb75848

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/api.js

+4
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,12 @@ export function getSubsetDetails(obj){
100100
function getCSV(url, name){
101101
let a = document.createElement('a')
102102
a.href = url
103+
a.style.display = 'none'
104+
a.setAttribute('type', 'hidden')
103105
a.setAttribute('download', name)
106+
document.body.appendChild(a)
104107
a.click()
108+
a.remove()
105109
a = null
106110
}
107111

0 commit comments

Comments
 (0)