Browse Source

fix: image download issue

Co-Authored-By: Clivia <132346501+Yanyutin753@users.noreply.github.com>
Timothy J. Baek 1 year ago
parent
commit
e92311b4eb
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/lib/components/common/ImagePreview.svelte

+ 1 - 1
src/lib/components/common/ImagePreview.svelte

@@ -51,7 +51,7 @@
 				<button
 					class=" p-5"
 					on:click={() => {
-						downloadImage(src, 'Image.png');
+						downloadImage(src, src.substring(src.lastIndexOf('/') + 1));
 					}}
 				>
 					<svg