docs: Removed unneeded changes from PR
This commit is contained in:
parent
69140af083
commit
46c69cc3e5
1 changed files with 2 additions and 4 deletions
|
@ -37,8 +37,8 @@ app.on('ready', function() {
|
||||||
var electronScreen = require('screen');
|
var electronScreen = require('screen');
|
||||||
var displays = electronScreen.getAllDisplays();
|
var displays = electronScreen.getAllDisplays();
|
||||||
var externalDisplay = null;
|
var externalDisplay = null;
|
||||||
for (var i =0; i< displays.length; i++) {
|
for (var i in displays) {
|
||||||
if (displays[i].bounds.x !==0 || displays[i].bounds.y !== 0) {
|
if (displays[i].bounds.x != 0 || displays[i].bounds.y != 0) {
|
||||||
externalDisplay = displays[i];
|
externalDisplay = displays[i];
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -48,8 +48,6 @@ app.on('ready', function() {
|
||||||
mainWindow = new BrowserWindow({
|
mainWindow = new BrowserWindow({
|
||||||
x: externalDisplay.bounds.x + 50,
|
x: externalDisplay.bounds.x + 50,
|
||||||
y: externalDisplay.bounds.y + 50,
|
y: externalDisplay.bounds.y + 50,
|
||||||
width: 900,
|
|
||||||
height:600
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue