mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-15 19:37:47 +01:00
refac
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user