mirror of
https://github.com/yusufipk/imagen-openrouter.git
synced 2026-09-11 10:36:07 +00:00
fix: update image download link to use the original URL and enhance modal metadata styling
This commit is contained in:
+1
-1
@@ -972,7 +972,7 @@ function downloadImageByIndex(index) {
|
||||
if (!image) return;
|
||||
|
||||
const link = document.createElement('a');
|
||||
link.href = sanitizeImageUrl(image.url);
|
||||
link.href = image.url;
|
||||
const timestamp = new Date(image.createdAt).toISOString().replace(/[:.]/g, '-');
|
||||
link.download = `imagen-${timestamp}.png`;
|
||||
document.body.appendChild(link);
|
||||
|
||||
Reference in New Issue
Block a user