A listener on “mainWindow” doesn’t worked for me. I used instead “mainWindow.webContents”.
mainWindow.webContents.once('dom-ready', () => {});
A listener on “mainWindow” doesn’t worked for me. I used instead “mainWindow.webContents”.
mainWindow.webContents.once('dom-ready', () => {});