Skip to content

Commit 06c2f3e

Browse files
authored
Update main.js
1 parent f301cd4 commit 06c2f3e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

main.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,9 @@ app.on('activate', () => {
231231
});
232232

233233
ipcMain.on('rects', (event, rects) => {
234-
interactRect = rects.topRight;
234+
if (rects && rects.topRight) {
235+
interactRect = rects.topRight;
236+
}
235237
});
236238

237239
ipcMain.on('take-screenshot', async () => {

0 commit comments

Comments
 (0)