mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-17 13:23:35 +00:00
refactor: show electron dev tools
This commit is contained in:
@@ -4,6 +4,7 @@ const {
|
|||||||
linkToGitHub,
|
linkToGitHub,
|
||||||
linkToDocs,
|
linkToDocs,
|
||||||
linkToDiscord,
|
linkToDiscord,
|
||||||
|
isProduction,
|
||||||
isMac,
|
isMac,
|
||||||
releaseTag,
|
releaseTag,
|
||||||
projectsPath,
|
projectsPath,
|
||||||
@@ -30,6 +31,7 @@ function getApplicationMenu(askToQuit, clientUrl, serverUrl, redirectWindow, dow
|
|||||||
makeViewMenu(clientUrl),
|
makeViewMenu(clientUrl),
|
||||||
makeSettingsMenu(redirectWindow),
|
makeSettingsMenu(redirectWindow),
|
||||||
makeHelpMenu(redirectWindow),
|
makeHelpMenu(redirectWindow),
|
||||||
|
...(isProduction ? [] : [{ label: 'Dev', submenu: [{ role: 'toggleDevTools' }] }]),
|
||||||
];
|
];
|
||||||
return Menu.buildFromTemplate(template);
|
return Menu.buildFromTemplate(template);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user