Show developer toolbar in menu
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { Menu, app } from 'electron'
|
||||
import { Menu, app, BrowserWindow, webContents } from 'electron'
|
||||
|
||||
const applicationMenu = {
|
||||
label: 'Application',
|
||||
@@ -10,6 +10,11 @@ const applicationMenu = {
|
||||
{
|
||||
type: 'separator' as 'separator',
|
||||
},
|
||||
{
|
||||
label: 'Dev Tools',
|
||||
accelerator: 'CmdOrCtrl+Alt+I',
|
||||
role: 'toggleDevTools',
|
||||
},
|
||||
{
|
||||
label: 'Quit',
|
||||
accelerator: 'Command+Q',
|
||||
|
||||
@@ -27,6 +27,7 @@ function createWindow() {
|
||||
height: 700,
|
||||
webPreferences: {
|
||||
nodeIntegration: true,
|
||||
devTools: true,
|
||||
},
|
||||
icon: iconPath,
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user