electronelectron-forge

Electron opens additional window on startup


This is the code that I'm running to make my app start on startup:

app.setLoginItemSettings({ openAtLogin: true });

This works but the problem is it is running an extra window of electron (see image). enter image description here

How do I stop this? I am using electron-forge template.


Solution

  • I got it now, this happens because I set the auto start-up to true when on development, which cases the electron to startup... I just disabled the electron startup on Windows Startup.