feat(electron): press F12 to open console

master
qier222 4 years ago
parent a43f3fccf8
commit 2393b10fe5

@ -176,6 +176,13 @@ export function createMenu(win) {
await shell.openExternal("https://electronjs.org"); await shell.openExternal("https://electronjs.org");
}, },
}, },
{
label: "开发者工具",
accelerator: "F12",
click: () => {
win.webContents.openDevTools();
},
},
], ],
}, },
]; ];

Loading…
Cancel
Save