More main process logging
// FREEBIE
This commit is contained in:
parent
b66a887184
commit
d71250b752
1 changed files with 2 additions and 1 deletions
3
main.js
3
main.js
|
@ -66,8 +66,8 @@ const config = require('config');
|
||||||
if (config.has('storageProfile')) {
|
if (config.has('storageProfile')) {
|
||||||
var userData = path.join(app.getPath('appData'), 'Signal-' + config.get('storageProfile'));
|
var userData = path.join(app.getPath('appData'), 'Signal-' + config.get('storageProfile'));
|
||||||
app.setPath('userData', userData);
|
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
|
// 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.
|
// be closed automatically when the JavaScript object is garbage collected.
|
||||||
|
@ -124,6 +124,7 @@ function createWindow () {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
mainWindow.webContents.on('will-navigate', function(e) {
|
mainWindow.webContents.on('will-navigate', function(e) {
|
||||||
|
console.log('will-navigate');
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue