diff --git a/index.js b/index.js index 717c787..ea67858 100644 --- a/index.js +++ b/index.js @@ -88,6 +88,10 @@ function createMainWindow() { e.preventDefault(); }); + tuskWindow.on('unresponsive', e => { + console.log('Unresponsive Tusk window. ', e); + }); + tuskWindow.webContents.on('did-navigate-in-page', (e, url) => { config.set('lastURL', url); }); @@ -116,6 +120,10 @@ app.on('ready', () => { electron.shell.openExternal(url); }); + windowContent.on('crashed', e => { + console.log('Tusk window crashed. ', e); + }); + update.init(electron.Menu.getApplicationMenu()); if (!isDevMode) { @@ -209,6 +217,11 @@ ipcMain.on('export-as-pdf', event => { }); }); +process.on('uncaughtException', error => { + // Report uncaught exceptions + console.log(error); +}); + app.on('activate', () => { mainWindow.show(); });