Skip to content

Commit

Permalink
Restart/Reload (#80)
Browse files Browse the repository at this point in the history
* There was a bug where it tried to call a restart function that doesn't exist on Linux. Added a test for the function

* Fixed other reference
  • Loading branch information
delmendo authored and gjtorikian committed Feb 7, 2018
1 parent 377d055 commit 15a22fc
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,12 @@ app.on('ready', function() {
label: 'Reload',
accelerator: 'Command+R',
click: function() {
mainWindow.reload();
if (mainWindow.restart) {
mainWindow.restart();
}
else if (mainWindow.reload) {
mainWindow.reload();
}
}
}, {
label: 'Toggle Full Screen',
Expand Down Expand Up @@ -229,7 +234,12 @@ app.on('ready', function() {
label: '&Reload',
accelerator: 'Ctrl+R',
click: function() {
mainWindow.restart();
if (mainWindow.restart) {
mainWindow.restart();
}
else if (mainWindow.reload) {
mainWindow.reload();
}
}
}, {
label: 'Toggle &Full Screen',
Expand Down

0 comments on commit 15a22fc

Please sign in to comment.