Suround electron browser by try/catch
This commit is contained in:
5
main.js
5
main.js
@@ -1,5 +1,6 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
|
try {
|
||||||
const electron = require('electron');
|
const electron = require('electron');
|
||||||
// Module to control application life.
|
// Module to control application life.
|
||||||
const { app } = electron;
|
const { app } = electron;
|
||||||
@@ -71,3 +72,7 @@ app.on('activate', () => {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
} catch (e) {
|
||||||
|
// Catch Error
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user