From 16b1bd893488f8a0a42847d75f9d5ba6affd46fc Mon Sep 17 00:00:00 2001 From: Forrest Oliphant Date: Mon, 23 Dec 2024 20:13:23 +0200 Subject: [PATCH] image download name include app url key --- src/nodes/image.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/nodes/image.js b/src/nodes/image.js index 029589e..821f161 100644 --- a/src/nodes/image.js +++ b/src/nodes/image.js @@ -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); });