feat: open help from browser

This commit is contained in:
cv
2021-10-28 15:17:12 +02:00
parent 1ffd6ff7b0
commit e1f9d322da
+6 -1
View File
@@ -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) {