We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 47cb6e7 commit 2bbe00eCopy full SHA for 2bbe00e
index.js
@@ -70,9 +70,19 @@ module.exports = opts => {
70
return;
71
}
72
73
- app.on('browser-window-created', (e, win) => {
+ app.on('browser-window-created', (event, win) => {
74
if (opts.showDevTools) {
75
- openDevTools(win, opts.showDevTools);
+ win.webContents.once('devtools-opened', () => {
76
+ // Workaround for https://github.com/electron/electron/issues/13095
77
+ setImmediate(() => {
78
+ win.focus();
79
+ });
80
81
+
82
+ /// Workaround for https://github.com/electron/electron/issues/12438
83
+ win.webContents.once('dom-ready', () => {
84
+ openDevTools(win, opts.showDevTools);
85
86
87
});
88
0 commit comments