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