diff --git a/github-electron/github-electron-main-tests.ts b/github-electron/github-electron-main-tests.ts index 14480059c..a849295b6 100644 --- a/github-electron/github-electron-main-tests.ts +++ b/github-electron/github-electron-main-tests.ts @@ -44,6 +44,9 @@ app.on('ready', () => { // and load the index.html of the app. mainWindow.loadUrl(`file://${__dirname}/index.html`); + mainWindow.openDevTools() + var opened: boolean = mainWindow.isDevToolsOpened() + mainWindow.toggleDevTools() // Emitted when the window is closed. mainWindow.on('closed', () => { // Dereference the window object, usually you would store windows diff --git a/github-electron/github-electron.d.ts b/github-electron/github-electron.d.ts index 5624b406b..fb0980520 100644 --- a/github-electron/github-electron.d.ts +++ b/github-electron/github-electron.d.ts @@ -356,6 +356,10 @@ declare module GitHubElectron { * Closes the developer tools. */ closeDevTools(): void; + /** + * Returns whether the developer tools are opened. + */ + isDevToolsOpened(): boolean; /** * Toggle the developer tools. */