ADD: Dev Reload option

This commit is contained in:
Robert Kossessa
2024-02-11 23:27:47 +01:00
parent b563e00f82
commit 79b6ab2597
3 changed files with 3 additions and 0 deletions

View File

@@ -148,6 +148,7 @@ app.whenReady().then(() => {
ipcMain.on('electron:closeWindow', () => mainWindow.close())
ipcMain.on('electron:openExternal', (_event, url) => shell.openExternal(url))
ipcMain.on('electron:openDevTools', () => mainWindow.webContents.toggleDevTools())
ipcMain.on('electron:reload', () => mainWindow.webContents.reloadIgnoringCache())
nanodevices.onAttach((device) => {
console.log('Attached device', device)
mainWindow.webContents.send('nanodevice-attached', device)