We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0cf858a commit 697cbdaCopy full SHA for 697cbda
renderer-process/system/screen-information.js
@@ -1,7 +1,7 @@
1
const electronScreen = require('electron').screen
2
3
const screenInfoBtn = document.getElementById('screen-info')
4
-const size = electronScreen.getPrimaryDisplay().workAreaSize
+const size = electronScreen.getPrimaryDisplay().size
5
6
screenInfoBtn.addEventListener('click', function () {
7
const message = `Your screen is: ${size.width} px x ${size.height} px`
0 commit comments