Skip to content

Commit

Permalink
fix: remove macOS workaround for devtools with custom titlebar
Browse files Browse the repository at this point in the history
  • Loading branch information
deepak1556 committed Nov 23, 2020
1 parent f5b5a4a commit 407198c
Showing 1 changed file with 1 addition and 5 deletions.
Expand Up @@ -615,11 +615,7 @@ export class NativeHostMainService extends Disposable implements INativeHostMain
const window = this.windowById(windowId);
if (window) {
const contents = window.win.webContents;
if (isMacintosh && window.hasHiddenTitleBarStyle && !window.isFullScreen && !contents.isDevToolsOpened()) {
contents.openDevTools({ mode: 'undocked' }); // due to https://github.com/electron/electron/issues/3647
} else {
contents.toggleDevTools();
}
contents.toggleDevTools();
}
}

Expand Down

0 comments on commit 407198c

Please sign in to comment.