Skip to content

Commit 2f12c49

Browse files
committed
screenshot first screen when using multiple screens
1 parent 818871d commit 2f12c49

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

renderer-process/printing/desktop-capturer.js

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

1919
sources.forEach(function (source) {
20-
if (source.name === 'Entire screen') {
2120
var screenshotPath = path.join(os.tmpdir(), 'screenshot.png')
2221

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

0 commit comments

Comments
 (0)