mirror of
https://github.com/qier222/YesPlayMusic.git
synced 2024-11-25 09:41:49 +08:00
feat(electron): press F12 to open console
This commit is contained in:
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…
Reference in New Issue
Block a user