Add F12 for openDevTools

This commit is contained in:
smartfridge 2021-05-04 12:11:42 +02:00
parent 3a77b0067b
commit 0dd0ce83ed
1 changed files with 3 additions and 2 deletions

View File

@ -5,8 +5,6 @@ const { remote } = require("electron");
window.addEventListener('DOMContentLoaded', () => {
new customTitlebar.Titlebar({
backgroundColor: customTitlebar.Color.fromHex("#2C2F33"),
unfocusEffect: true,
menu: true,
});
@ -15,4 +13,7 @@ const currentWindow = remote.getCurrentWindow();
electronLocalshortcut.register(currentWindow, "F5", () => {
location.reload();
});
electronLocalshortcut.register(currentWindow, "F12", () => {
currentWindow.webContents.openDevTools();
});
require("./utils/capturer.js")