From f512d517d2950a7be0780c5af0b2f1b31eb47bf2 Mon Sep 17 00:00:00 2001
From: Fuwn <contact@fuwn.me>
Date: Sat, 11 Nov 2023 12:36:45 -0800
Subject: fix(wrapped): redirect instead of download

---
 src/lib/Tools/Wrapped.svelte | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

(limited to 'src/lib/Tools/Wrapped.svelte')

diff --git a/src/lib/Tools/Wrapped.svelte b/src/lib/Tools/Wrapped.svelte
index 75439a5a..823729ad 100644
--- a/src/lib/Tools/Wrapped.svelte
+++ b/src/lib/Tools/Wrapped.svelte
@@ -119,8 +119,9 @@
 					const downloadWrapper = document.createElement('a');
 					const image = document.createElement('img');
 
-					downloadWrapper.download = `due_dot_moe_wrapped_${dark ? 'dark' : 'light'}.png`;
+					// downloadWrapper.download = `due_dot_moe_wrapped_${dark ? 'dark' : 'light'}.png`;
 					downloadWrapper.href = URL.createObjectURL(blob);
+					downloadWrapper.target = '_blank';
 					image.src = URL.createObjectURL(blob);
 					downloadWrapper.appendChild(image);
 
@@ -130,6 +131,8 @@
 						wrappedFinal.innerHTML = '';
 						wrappedFinal.appendChild(downloadWrapper);
 					}
+
+					downloadWrapper.click();
 				});
 
 			await new Promise((resolve) => setTimeout(resolve, 1000));
-- 
cgit v1.2.3

