How to pass parameters from main process to render processes in Electron
A few methods: loadURL Query String The query string method others have posted seems to work fine. It might even be the easiest. additionalArguments Electron’s documentation says additionalArguments is: Useful for passing small bits of data down to renderer process preload scripts. Main const win = new BrowserWindow({ width: 800, height: 600, backgroundColor: ‘#000000’ webPreferences: … Read more