Add unhandled rejection handler in main.js
This commit is contained in:
14
main.js
14
main.js
@@ -12,6 +12,10 @@ const Store = require('electron-store');
|
|||||||
const simpleGit = require('simple-git');
|
const simpleGit = require('simple-git');
|
||||||
const chokidar = require('chokidar');
|
const chokidar = require('chokidar');
|
||||||
|
|
||||||
|
process.on('unhandledRejection', (err) => {
|
||||||
|
console.error('Unhandled Rejection:', err);
|
||||||
|
});
|
||||||
|
|
||||||
const store = new Store({
|
const store = new Store({
|
||||||
defaults: {
|
defaults: {
|
||||||
folders: [],
|
folders: [],
|
||||||
@@ -1197,16 +1201,6 @@ function buildTrayMenu() {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// Auto-Verzeichnisstruktur
|
|
||||||
const IGNORED_NAMES = [
|
|
||||||
'.DS_Store', 'node_modules', '.git', 'dist', 'build',
|
|
||||||
'.cache', 'out', '.venv', '.mypy_cache', '__pycache__', 'package-lock.json'
|
|
||||||
];
|
|
||||||
|
|
||||||
function isIgnored(name) {
|
function isIgnored(name) {
|
||||||
return IGNORED_NAMES.includes(name);
|
return IGNORED_NAMES.includes(name);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user