Developer window in Electron app, remove edit/delete options in Admin panel (currently not completed)

This commit is contained in:
2024-11-19 18:41:26 +01:00
parent 1dc5740f03
commit e02f2d252e
10 changed files with 36 additions and 32 deletions

View File

@@ -1,4 +1,4 @@
const { app, BrowserWindow } = require("electron");
const { app, BrowserWindow, globalShortcut } = require("electron");
const path = require("path");
const backend = require('./../backend/server')
@@ -19,6 +19,10 @@ function createWindow() {
// Load HTML entry point
win.loadFile("build/src/vite/index.html");
globalShortcut.register('Ctrl+D', () => {
win.webContents.openDevTools();
})
// Maximize window
win.maximize()