summaryrefslogtreecommitdiff
path: root/electron_js
diff options
context:
space:
mode:
Diffstat (limited to 'electron_js')
-rw-r--r--electron_js/main.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/electron_js/main.js b/electron_js/main.js
index 95e1521b..ecabe3de 100644
--- a/electron_js/main.js
+++ b/electron_js/main.js
@@ -5,6 +5,7 @@ const {dialog} = require('electron')
const path = require('path');
const url = require('url');
+
// Module to create native browser window.
const {BrowserWindow} = electron;
var isFs = false;
@@ -281,10 +282,12 @@ app.on('activate', () => {
}
});
+console.log ("Setting uncaught exception handler...");
app.on('uncaughtException', function (err) {
console.log("***WHOOPS TIME****"+err);
});
+
app.on('will-quit', () => {
// Unregister all shortcuts.
globalShortcut.unregisterAll()