mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-12 12:25:20 +00:00
refac
This commit is contained in:
parent
10b9fa6ed0
commit
7de88cc4eb
2 changed files with 2 additions and 0 deletions
|
|
@ -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,
|
||||||
|
|
|
||||||
|
|
@ -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,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue