mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-07 08:23:55 +00:00
feat: open help from browser
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user