Open davisbra opened 4 years ago
I use nightmare on electron. it works fine in debugging mode. but when I build electron app with electron-builder, it not work and it open multiple window of electron main app. how can I fix this issue? its my code:
mainWindow.loadURL('https://google.com') const Nightmare = require('nightmare') const nightmare = Nightmare({autoHideMenuBar:true,menuBarVisible:false, electronPath: require('electron').app.getPath('exe');, show: true, }); nightmare.goto("https://github.com") .catch(error => { console.error('Search failed:', error) })
is that result in electron just white screen???
@davisbra have able to solve the issue ? i am also facing the same problem
I use nightmare on electron. it works fine in debugging mode. but when I build electron app with electron-builder, it not work and it open multiple window of electron main app. how can I fix this issue? its my code:
mainWindow.loadURL('https://google.com') const Nightmare = require('nightmare') const nightmare = Nightmare({autoHideMenuBar:true,menuBarVisible:false, electronPath: require('electron').app.getPath('exe');, show: true, }); nightmare.goto("https://github.com") .catch(error => { console.error('Search failed:', error) })