More main process logging

// FREEBIE
This commit is contained in:
lilia 2017-04-26 14:19:10 -07:00 committed by Scott Nonnenberg
parent b66a887184
commit d71250b752
No known key found for this signature in database
GPG key ID: A4931C09644C654B

View file

@ -66,8 +66,8 @@ const config = require('config');
if (config.has('storageProfile')) {
var userData = path.join(app.getPath('appData'), 'Signal-' + config.get('storageProfile'));
app.setPath('userData', userData);
console.log('userData ' + userData);
}
console.log('userData ' + app.getPath('userData'));
// Keep a global reference of the window object, if you don't, the window will
// be closed automatically when the JavaScript object is garbage collected.
@ -124,6 +124,7 @@ function createWindow () {
}
});
mainWindow.webContents.on('will-navigate', function(e) {
console.log('will-navigate');
e.preventDefault();
});