Browse Source

add icpMain function for reloading

master
gelaechter 3 years ago
committed by Jeff
parent
commit
921e8f2985
  1. 5
      src/main.dev.js

5
src/main.dev.js

@ -578,3 +578,8 @@ app.on('activate', () => {
// dock icon is clicked and there are no other windows open. // dock icon is clicked and there are no other windows open.
if (mainWindow === null) createWindow(); if (mainWindow === null) createWindow();
}); });
ipcMain.on('reload', () => {
app.quit();
createWindow();
});

Loading…
Cancel
Save