mirror of
https://github.com/silenty4ng/k5web
synced 2025-01-06 20:02:38 +00:00
update
This commit is contained in:
parent
ff938eec8c
commit
2fd7a16573
1 changed files with 1 additions and 0 deletions
|
@ -239,6 +239,7 @@
|
|||
}
|
||||
|
||||
const iDownload = (url: any, name: any) => {
|
||||
if(name.split('.').reverse()[0] !== 'bin')name += '.bin';
|
||||
fetch(url).then(e=>e.blob()).then(blob=>{
|
||||
const url = URL.createObjectURL(blob);
|
||||
const a = document.createElement('a');
|
||||
|
|
Loading…
Reference in a new issue