Suround electron browser by try/catch

This commit is contained in:
Maxime GRIS
2017-05-06 00:43:15 +02:00
parent b2af4fd24a
commit 88be472379

View File

@@ -1,5 +1,6 @@
'use strict';
try {
const electron = require('electron');
// Module to control application life.
const { app } = electron;
@@ -71,3 +72,7 @@ app.on('activate', () => {
}
});
} catch (e) {
// Catch Error
}