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")