Developer window in Electron app, remove edit/delete options in Admin panel (currently not completed)
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user