Blank window when link is opened using js



I am using a payment gateway (Razorpay) which opens a new window when you select a bank from the list, on the browser it opens the link in a new tab, but when used within electron a new blank window gets displayed.

How can I solve this issue? I tried detecting new-window and will-navigate events using win.on(‘new-window’) and win.on(‘will-navigate’) but it’s not working.


My instinct here is to put a handler for “new-window” on your session as well. A payment gateway will want to open a separate window to ensure that no data slips between the payment session and the invoking app, though. As to why it’s blank–no idea.