You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The app can be opened multiple times this can cause unexpected issues. Ports for the overlay extensions cant be used twice. Lock this into one instance.
This is how it should be done:
const{ app }=require('electron')letmyWindow=nullconstgotTheLock=app.requestSingleInstanceLock()if(!gotTheLock){app.quit()}else{app.on('second-instance',(event,commandLine,workingDirectory)=>{// Someone tried to run a second instance, we should focus our window.if(myWindow){if(myWindow.isMinimized())myWindow.restore()myWindow.focus()}})// Create myWindow, load the rest of the app, etc...app.on('ready',()=>{})}
The text was updated successfully, but these errors were encountered:
The app can be opened multiple times this can cause unexpected issues. Ports for the overlay extensions cant be used twice. Lock this into one instance.
This is how it should be done:
The text was updated successfully, but these errors were encountered: