electron-devtools-installer
electron-devtools-installer copied to clipboard
Devtools are not always loaded in all BrowserWindows
In my electron app I create 2 BrowserWindows. I call installExtension after creating the BrowserWindows, but my main window only loads the devtools occasionally.
app.whenReady()
.then(createWindows)
.then(() => {
installExtension(REDUX_DEVTOOLS)
.then((name) => console.log(`Added Extension: ${name}`))
.catch((err) => console.log('An error occurred: ', err));
});
Can I call installExtension on specific BrowserWindows or can I do anything differently so I do not have to rely on my luck on startup :-)