This commit is contained in:
Timothy Jaeryang Baek 2025-03-15 17:19:22 +00:00
parent 10b9fa6ed0
commit 7de88cc4eb
2 changed files with 2 additions and 0 deletions

View File

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

View File

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