Skip to content

Commit

Permalink
Merge pull request #5 from hmlendea/dev
Browse files Browse the repository at this point in the history
Minor fix
  • Loading branch information
hmlendea committed Aug 22, 2020
2 parents c595aeb + 19d5eec commit 6ccf4a8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "geforcenow",
"appId": "com.electron.${name}",
"productName": "GeForce Now",
"version": "1.0.1",
"version": "1.0.2",
"description": "A cross-platform web app for GeForce Now for ChromeBook",
"main": "scripts/main.js",
"scripts": {
Expand Down
7 changes: 2 additions & 5 deletions scripts/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,9 @@ app.on('browser-window-created',function(e,window) {
if (window.id != 1) {
var mainWindow = BrowserWindow.fromId(1);
var mainWindowPosition = mainWindow.getPosition();
var mainWindowSize = mainWindow.getSize();
var windowSize = window.getSize();

window.setPosition(
mainWindowPosition[0] + (mainWindowSize[0] - windowSize[0]) / 2,
mainWindowPosition[1] + (mainWindowSize[1] - windowSize[1]) / 2);
window.setPosition(mainWindowPosition[0], mainWindowPosition[1]);
window.center();
}
});

Expand Down

0 comments on commit 6ccf4a8

Please sign in to comment.