I’m trying to package a legacy app that relies on window.opener, which isn’t fully supported by electron. I’ve tried to shim in the ipc to do something like BrowserWindowOne —> MainProcess —> BrowserWindowTwo, but there is no way for this communication flow to remain synchronous (that I see). When I try to communicate from the main process to the secondary browser window, I’m forced to use webContents.send which is asyc.
I agree ideally it would be rewritten to be async, and I understand the desire to attempt to try and prevent deadlocks… but rewriting the application to be async isn’t an option at this point.
Are there any alternative solutions I should consider? Is there a way to avoid the main process altogether and communicate between the BrowserWindow’s directly?