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

Commit

Permalink
Merge pull request #163 from BarakStout/firefox-issue
Browse files Browse the repository at this point in the history
Firefox issue
  • Loading branch information
wpears authored Sep 3, 2019
2 parents 2625d82 + d29c004 commit cb75848
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,12 @@ export function getSubsetDetails(obj){
function getCSV(url, name){
let a = document.createElement('a')
a.href = url
a.style.display = 'none'
a.setAttribute('type', 'hidden')
a.setAttribute('download', name)
document.body.appendChild(a)
a.click()
a.remove()
a = null
}

Expand Down

0 comments on commit cb75848

Please sign in to comment.