fix: download image
This commit is contained in:
parent
4496b4d907
commit
6213bebda2
@ -18,6 +18,7 @@ export interface Response {
|
||||
export interface Asset {
|
||||
id: string
|
||||
url: string
|
||||
key: string
|
||||
asset_data: AssetData
|
||||
}
|
||||
|
||||
|
||||
@ -86,7 +86,7 @@ function HomePage(): JSX.Element {
|
||||
|
||||
const downloadImg = () => {
|
||||
if( !asset ) return;
|
||||
download(asset.url.replace('http://', 'https://'), 'image.png');
|
||||
download(asset.url, 'image.png');
|
||||
}
|
||||
|
||||
return (
|
||||
|
||||
Loading…
Reference in New Issue
Block a user