Added dev tools support

This commit is contained in:
2025-11-20 14:53:32 -05:00
parent aa5ac304bd
commit c3de5af1f2
5 changed files with 17 additions and 7 deletions

View File

@@ -67,7 +67,6 @@ function createWindow() {
mainWindow.loadFile('views/index.html');
mainWindow.setMenu(null);
// mainWindow.webContents.openDevTools();
}
app.whenReady().then(() => {
@@ -95,4 +94,8 @@ ipcMain.handle('api:search', apiHandlers.search);
ipcMain.handle('db:getFavorites', dbHandlers.getFavorites);
ipcMain.handle('db:addFavorite', dbHandlers.addFavorite);
ipcMain.handle('db:removeFavorite', dbHandlers.removeFavorite);
ipcMain.handle('db:removeFavorite', dbHandlers.removeFavorite);
ipcMain.on('toggle-dev-tools', (event) => {
event.sender.toggleDevTools();
});