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:
AvaLilac 2026-04-04 15:27:29 -04:00 committed by GitHub
parent c386cb6cba
commit 363f9f675b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -150,6 +150,8 @@ export function createMainWindow() {
) {
event.preventDefault();
mainWindow.webContents.reload();
} else if(input.key=='F12'){
mainWindow.webContents.openDevTools({ mode: "detach" });
}
});