From 0dd0ce83ed24553a37428543e4c60d81d9f648d5 Mon Sep 17 00:00:00 2001 From: smartfridge <37928912+smartfrigde@users.noreply.github.com> Date: Tue, 4 May 2021 12:11:42 +0200 Subject: [PATCH] Add F12 for openDevTools --- preload.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/preload.js b/preload.js index 4842353..8929971 100644 --- a/preload.js +++ b/preload.js @@ -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")