Skip to content

Commit

Permalink
image download name include app url key
Browse files Browse the repository at this point in the history
  • Loading branch information
forresto committed Dec 23, 2024
1 parent c865eaa commit 16b1bd8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/nodes/image.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,8 @@ $(function () {
a.href = url;
const date = new Date();
const dateString = `${date.getFullYear()}-${String(date.getMonth() + 1).padStart(2, '0')}-${String(date.getDate()).padStart(2, '0')}-${String(date.getHours()).padStart(2, '0')}-${String(date.getMinutes()).padStart(2, '0')}-${String(date.getSeconds()).padStart(2, '0')}`;
a.download = `meemoo-${dateString}.png`;
const appUrl = Iframework.graph.get('info')?.url || '';
a.download = `meemoo-${appUrl}-${dateString}.png`;
a.click();
URL.revokeObjectURL(url);
});
Expand Down

0 comments on commit 16b1bd8

Please sign in to comment.