mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-20 14:39:06 +00:00
feat: open help from browser
This commit is contained in:
@@ -45,7 +45,12 @@ export default function MenuBar(props) {
|
|||||||
|
|
||||||
const handleIPC = (action) => {
|
const handleIPC = (action) => {
|
||||||
// Stop crashes when testing locally
|
// 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') {
|
if (window.process.type === 'renderer') {
|
||||||
switch (action) {
|
switch (action) {
|
||||||
|
|||||||
Reference in New Issue
Block a user