I have an Electron app that can open different windows.
On app launch the app open a set of window(s) (that load the same HTML and JS files) but with params to change ea
Unfortunately, it seems pretty complicated. You probably won't be able to add variables to .html you render in electron in a nice way.
Of course - you can use url but it slows down booting very much (vy seconds) or you can execute Javascript in BrowserWindo, which also slows boot down.
The only way is the IPC and leaving javascript .html agnostic to variables from main process. Very sad though..