Fix electron reloading

Reviewed By: antonk52

Differential Revision: D37556134

fbshipit-source-id: 7ff301bd6d06f570559b38647462515c35c899f3
This commit is contained in:
Andrey Goncharov
2022-07-01 03:42:11 -07:00
committed by Facebook GitHub Bot
parent 8c2ef5738e
commit ae90ce5878

View File

@@ -44,8 +44,8 @@ function getTemplate(
{ {
label: 'Reload', label: 'Reload',
accelerator: 'CmdOrCtrl+R', accelerator: 'CmdOrCtrl+R',
click: function (_, _focusedWindow: electron.BrowserWindow | undefined) { click: function (_, focusedWindow: electron.BrowserWindow | undefined) {
window.location.reload(); focusedWindow?.reload();
}, },
}, },
{ {