Make it possible for users to open devtools via F12
Signed-off-by: AvaLilac <257690424+AvaLilac@users.noreply.github.com>
This commit is contained in:
parent
c386cb6cba
commit
363f9f675b
1 changed files with 2 additions and 0 deletions
|
|
@ -150,6 +150,8 @@ export function createMainWindow() {
|
|||
) {
|
||||
event.preventDefault();
|
||||
mainWindow.webContents.reload();
|
||||
} else if(input.key=='F12'){
|
||||
mainWindow.webContents.openDevTools({ mode: "detach" });
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue