mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2026-01-08 06:19:05 +08:00
fix: Export image in dark mode (#2332)
Co-authored-by: 亢奋猫 <kangfenmao@qq.com>
This commit is contained in:
parent
22c356062b
commit
d938531c31
@ -306,7 +306,7 @@ export const captureScrollableDiv = async (divRef: React.RefObject<HTMLDivElemen
|
|||||||
allowTaint: true, // Allow cross-origin images
|
allowTaint: true, // Allow cross-origin images
|
||||||
logging: false, // Disable logging
|
logging: false, // Disable logging
|
||||||
imageTimeout: 0, // Disable image timeout
|
imageTimeout: 0, // Disable image timeout
|
||||||
backgroundColor: null,
|
backgroundColor: getComputedStyle(div).getPropertyValue('--color-background'),
|
||||||
onclone: (clonedDoc) => {
|
onclone: (clonedDoc) => {
|
||||||
// 克隆时保留原始样式
|
// 克隆时保留原始样式
|
||||||
if (div.id) {
|
if (div.id) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user