Fix electron reloading
Reviewed By: antonk52 Differential Revision: D37556134 fbshipit-source-id: 7ff301bd6d06f570559b38647462515c35c899f3
This commit is contained in:
committed by
Facebook GitHub Bot
parent
8c2ef5738e
commit
ae90ce5878
@@ -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();
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user