eligrey / eligrey/FileSaver.js
My Business Requirements is that downloads do not trigger a new tab to open.
Open
- Dominant language
- JavaScript
- Stars
- 22k
- Forks
- 4.3k
- PR merge metrics
- No merged PRs in 30d
Description
When I download a signed download link, it will open a new tab and then quickly close it before downloading. I find it strange. Is there any way to trigger the download in the current tab?
I have to use the following code for substitution:
```js
const a = document.createElement('a');
a.href = res?.DomainObj;
a.download = fileName;
a.click();
```
Is there any configuration that can be operated?
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.