Skip to content

Commit 59effbd

Browse files
committed
screenshot first screen if many are present
1 parent 2f12c49 commit 59effbd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

renderer-process/printing/desktop-capturer.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ screenshot.addEventListener('click', function (event) {
1717
if (error) return console.log(error)
1818

1919
sources.forEach(function (source) {
20+
if (source.name === 'Entire screen' || source.name === 'Screen 1') {
2021
var screenshotPath = path.join(os.tmpdir(), 'screenshot.png')
2122

2223
fs.writeFile(screenshotPath, source.thumbnail.toPng(), function (error) {

0 commit comments

Comments
 (0)