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
You can share data between main and renderer processor using global variable:
global
Main processor:
global.id = 1;
Renderer processor:
let id = remote.getGlobal('id');