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 = {
|
const applicationMenu = {
|
||||||
label: 'Application',
|
label: 'Application',
|
||||||
@@ -10,6 +10,11 @@ const applicationMenu = {
|
|||||||
{
|
{
|
||||||
type: 'separator' as 'separator',
|
type: 'separator' as 'separator',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
label: 'Dev Tools',
|
||||||
|
accelerator: 'CmdOrCtrl+Alt+I',
|
||||||
|
role: 'toggleDevTools',
|
||||||
|
},
|
||||||
{
|
{
|
||||||
label: 'Quit',
|
label: 'Quit',
|
||||||
accelerator: 'Command+Q',
|
accelerator: 'Command+Q',
|
||||||
|
|||||||
@@ -27,6 +27,7 @@ function createWindow() {
|
|||||||
height: 700,
|
height: 700,
|
||||||
webPreferences: {
|
webPreferences: {
|
||||||
nodeIntegration: true,
|
nodeIntegration: true,
|
||||||
|
devTools: true,
|
||||||
},
|
},
|
||||||
icon: iconPath,
|
icon: iconPath,
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user