AllonKleinLab/SPRING_dev

Downloads - firefox

msmicker opened this issue · 1 comments

It appears Spring is generally compatible with Firefox, but we noticed download options are not functioning in Firefox. I was able to resolve by a small update to the downloadFile function. It is a one line change suggested from this link:
https://support.mozilla.org/en-US/questions/968992

Apparently the hidden link being created needs to be attached to the DOM but not in Chrome.

Before this line -

hiddenElement.click();

I added this to attach to DOM:
document.body.appendChild(hiddenElement)