Skip to content

Commit

Permalink
Merge pull request #2 from kethinov/dont-save-on-splash-screen
Browse files Browse the repository at this point in the history
don't save on splash screen
  • Loading branch information
Autre31415 committed Jun 17, 2016
2 parents ae5de04 + 299a01d commit 92785cc
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion renderer.js
Expand Up @@ -5,7 +5,13 @@ window.addEventListener('beforeunload', function (event) {
});

function confirmClose (event) {
var confirm = dialog.showMessageBox({
var confirm;

if (document.getElementById('splashscreenlogo')) {
return;
}

confirm = dialog.showMessageBox({
type: 'question',
buttons: ['Yes', 'No', 'Cancel'],
message: 'Would you like to save before closing?'
Expand Down

0 comments on commit 92785cc

Please sign in to comment.