|
@@ -81,7 +81,10 @@ function createMainWindow(simple = false) {
|
|
|
function loadMainProcessFiles() {
|
|
|
const mainProcessFiles = file.list(path.join(__dirname, folder, 'main/'));
|
|
|
mainProcessFiles.forEach(f => {
|
|
|
- require(path.join(__dirname, folder, 'main/', f));
|
|
|
+ const filepath = path.join(__dirname, folder, 'main/', f)
|
|
|
+ if (file.isFile(filepath)) {
|
|
|
+ require(filepath);
|
|
|
+ }
|
|
|
});
|
|
|
}
|
|
|
|