diff --git a/app/main/index.js b/app/main/index.js index f7cd3860..fee37e90 100644 --- a/app/main/index.js +++ b/app/main/index.js @@ -207,6 +207,11 @@ app.on('ready', () => { app.quit(); }); + ipc.on('hard-reload', () => { + mainWindow.reload(); + page.send('destroytray'); + }); + ipc.on('toggle-app', () => { if (mainWindow.isVisible()) { mainWindow.hide(); diff --git a/app/main/menu.js b/app/main/menu.js index dbed5037..016153f7 100644 --- a/app/main/menu.js +++ b/app/main/menu.js @@ -59,6 +59,15 @@ const viewSubmenu = [ } } }, + { + label: 'Hard Reload', + accelerator: 'CommandOrControl+Shift+R', + click(item, focusedWindow) { + if (focusedWindow) { + sendAction('hard-reload'); + } + } + }, { type: 'separator' },