Timothy Jaeryang Baek 2 months ago
parent
commit
7de88cc4eb

+ 1 - 0
src/lib/components/layout/Navbar/Menu.svelte

@@ -69,6 +69,7 @@
 				const isDarkMode = $theme.includes('dark'); // Check theme mode
 				const isDarkMode = $theme.includes('dark'); // Check theme mode
 
 
 				const canvas = await html2canvas(containerElement, {
 				const canvas = await html2canvas(containerElement, {
+					useCORS: true,
 					backgroundColor: isDarkMode ? '#000' : '#fff', // Ensure proper background
 					backgroundColor: isDarkMode ? '#000' : '#fff', // Ensure proper background
 					scale: 2, // Enhance resolution
 					scale: 2, // Enhance resolution
 					height: containerElement.scrollHeight,
 					height: containerElement.scrollHeight,

+ 1 - 0
src/lib/components/layout/Sidebar/ChatMenu.svelte

@@ -87,6 +87,7 @@
 				const isDarkMode = $theme.includes('dark'); // Check theme mode
 				const isDarkMode = $theme.includes('dark'); // Check theme mode
 
 
 				const canvas = await html2canvas(containerElement, {
 				const canvas = await html2canvas(containerElement, {
+					useCORS: true,
 					backgroundColor: isDarkMode ? '#000' : '#fff', // Ensure proper background
 					backgroundColor: isDarkMode ? '#000' : '#fff', // Ensure proper background
 					scale: 2, // Enhance resolution
 					scale: 2, // Enhance resolution
 					height: containerElement.scrollHeight,
 					height: containerElement.scrollHeight,