mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-26 03:31:24 +08:00
Update src/main/services/ScreenshotService.ts
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
parent
1ad083511a
commit
8a9ce2d8d0
@ -59,7 +59,7 @@ export class Screenshot {
|
||||
const buffer = await image.toPng()
|
||||
|
||||
const ext = '.png'
|
||||
const tempFilePath = await fileStorage.createTempFile({} as any, fileName || `screenshot${ext}`)
|
||||
const tempFilePath = await fileStorage.createTempFile(undefined, fileName || `screenshot${ext}`)
|
||||
await fs.promises.writeFile(tempFilePath, buffer)
|
||||
|
||||
const stats = await fs.promises.stat(tempFilePath)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user