diff --git a/lib/main.js b/lib/main.js index 0e1b637..ad5bb53 100644 --- a/lib/main.js +++ b/lib/main.js @@ -7,6 +7,13 @@ const { globalShortcut, } = require('electron'); +// worker_threads doesn't supported +// electron just crash +// so disable it +// +// https://github.com/electron/electron/issues/18540 +process.env.THREAD_IT_COUNT = 0; + const server = require('./server'); // Keep a global reference of the window object, if you don't, the window will