Prevent second app instance (#62)
This commit is contained in:
parent
335287d119
commit
cd6bf25011
1 changed files with 6 additions and 0 deletions
|
@ -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();
|
||||||
|
|
Reference in a new issue