update
This commit is contained in:
1 parent
806200b3d1
commit
5547c29491
216 files changed
+5043
-3352
No files matched your search
@@ -313,7 +313,11 @@ export async function runAction(
|
||||
try {
|
||||
const image: NativeImage = await win.webContents.capturePage();
|
||||
if (!image.isEmpty()) writeFileSync(screenshotPath, image.toPNG());
|
||||
} catch { /* ignore */ }
|
||||
} catch (screenshotError) {
|
||||
log.warn(
|
||||
`[browser] failure screenshot capture failed for action ${action.id}: ${screenshotError instanceof Error ? screenshotError.message : String(screenshotError)}`,
|
||||
);
|
||||
}
|
||||
|
||||
if (!win.isDestroyed()) win.close();
|
||||
|
||||
|
||||
Reference in new issue
Block a user