From e1f9d322daaf01062ed7eb81baea4acb91d4c887 Mon Sep 17 00:00:00 2001 From: cv <34649812+cpvalente@users.noreply.github.com> Date: Thu, 28 Oct 2021 15:17:12 +0200 Subject: [PATCH] feat: open help from browser --- client/src/features/menu/MenuBar.jsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/client/src/features/menu/MenuBar.jsx b/client/src/features/menu/MenuBar.jsx index 1d6bf0737..6acb50de3 100644 --- a/client/src/features/menu/MenuBar.jsx +++ b/client/src/features/menu/MenuBar.jsx @@ -45,7 +45,12 @@ export default function MenuBar(props) { const handleIPC = (action) => { // Stop crashes when testing locally - if (window.process?.type === undefined) return; + if (window.process?.type === undefined) { + if (action === 'help') { + window.open('https://cpvalente.gitbook.io/ontime/'); + } + return; + } if (window.process.type === 'renderer') { switch (action) {