diff --git a/app/menu/main-menu.js b/app/menu/main-menu.js index 32fc5168f..082b116ac 100644 --- a/app/menu/main-menu.js +++ b/app/menu/main-menu.js @@ -36,7 +36,7 @@ const baseTemplate = [ label: 'Help', click(item, focusedWindow) { if (focusedWindow) { - focusedWindow.loadURL(`file://${__dirname}/../dist/index.html?help`); + focusedWindow.webContents.send('open-menu', '/help'); } } } diff --git a/ui/js/main.js b/ui/js/main.js index 741c441da..78eceb235 100644 --- a/ui/js/main.js +++ b/ui/js/main.js @@ -49,6 +49,12 @@ ipcRenderer.on("open-uri-requested", (event, uri) => { } }); +ipcRenderer.on("open-menu", (event, uri) => { + if (uri && uri.startsWith("/help")) { + app.store.dispatch(doNavigate("/help")); + } +}); + document.addEventListener("click", event => { var target = event.target; while (target && target !== document) {