mirror of
https://github.com/GiriNeko/YesPlayMusic.git
synced 2025-12-16 21:28:06 +00:00
feat(electron): press F12 to open console
This commit is contained in:
parent
a43f3fccf8
commit
2393b10fe5
1 changed files with 7 additions and 0 deletions
|
|
@ -176,6 +176,13 @@ export function createMenu(win) {
|
|||
await shell.openExternal("https://electronjs.org");
|
||||
},
|
||||
},
|
||||
{
|
||||
label: "开发者工具",
|
||||
accelerator: "F12",
|
||||
click: () => {
|
||||
win.webContents.openDevTools();
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue