fix: download image

This commit is contained in:
gofnnp 2023-09-23 20:21:11 +04:00
parent dea56a0175
commit deb354e29b
2 changed files with 2 additions and 2 deletions

View File

@ -107,7 +107,7 @@ function HomePage(): JSX.Element {
const downloadImg = () => {
if (!asset) return;
saveFile(asset.url, buildFilename('1'));
saveFile(asset.url.replace("http://", "https://"), buildFilename('1'));
};
return (

View File

@ -48,7 +48,7 @@ function WallpaperPage(): JSX.Element {
const asset = data ? data.assets.at(0) : null;
const handleClick = () =>
asset && saveFile(asset.url, buildFilename(category));
asset && saveFile(asset.url.replace("http://", "https://"), buildFilename(category));
return (
<section className="wallpaper-page">