eligrey / FileSaver.js

An HTML5 saveAs() FileSaver implementation
https://eligrey.com/blog/saving-generated-files-on-the-client-side/
Other
21.58k stars 4.38k forks source link

There will be a pop-up window when you click a non-same-source link to download, which will affect the user experience #792

Open promise6512 opened 1 year ago

promise6512 commented 1 year ago

Can it be changed to allow the user to configure the attributes of the a tag. We expect a.target='_self',even if the link is none-same-source. https://github.com/eligrey/FileSaver.js/blob/cea522bc41bfadc364837293d0c4dc585a65ac46/src/FileSaver.js#L99