diff --git a/desktop/static/setupMenuBar.tsx b/desktop/static/setupMenuBar.tsx index 3904b363f..96c356064 100644 --- a/desktop/static/setupMenuBar.tsx +++ b/desktop/static/setupMenuBar.tsx @@ -44,8 +44,8 @@ function getTemplate( { label: 'Reload', accelerator: 'CmdOrCtrl+R', - click: function (_, _focusedWindow: electron.BrowserWindow | undefined) { - window.location.reload(); + click: function (_, focusedWindow: electron.BrowserWindow | undefined) { + focusedWindow?.reload(); }, }, {