Prevent second app instance (#62)

This commit is contained in:
jeffvli 2023-03-29 00:40:29 -07:00
parent 335287d119
commit cd6bf25011

View file

@ -61,6 +61,12 @@ const installExtensions = async () => {
.catch(console.log); .catch(console.log);
}; };
const singleInstance = app.requestSingleInstanceLock();
if (!singleInstance) {
app.quit();
}
const createWindow = async () => { const createWindow = async () => {
if (isDevelopment) { if (isDevelopment) {
await installExtensions(); await installExtensions();