I have 2 BrowserWindow:
let AlgoWin = new BrowserWindow({width: 1280, height: 730);
let AlgoMasWin = new BrowserWindow({width: 1120, height: 550);
These 2 BrowserWindow load html files hosted in the public_html
folder such that:
AlgoWin.loadFile("public_html/index.html");
AlgoMasWin.loadFile("public_html/algoMas.html");
As I understand, to pass data between BrowserWindows it could be done like this:
AlgoWin.webContents.on('did-finish-load', function() {
AlgoWin.webContents.send('configInfo', Data);
});
My question comes at this point. Taking into account that the index.html
is executed as if it were on the client's side (therefore I can not use require), as it could do to receive the data that it wants to send from the main process of the application to index.html
and use those data to show?