feat(electron): press F12 to open console

This commit is contained in:
qier222 2021-01-30 20:34:53 +08:00
parent a43f3fccf8
commit 2393b10fe5

View File

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