fix(electron): disable tray & recording for now (#11055)
This commit is contained in:
@@ -87,12 +87,20 @@ app
|
|||||||
.then(registerHandlers)
|
.then(registerHandlers)
|
||||||
.then(registerEvents)
|
.then(registerEvents)
|
||||||
.then(launch)
|
.then(launch)
|
||||||
.then(setupRecording)
|
|
||||||
.then(createApplicationMenu)
|
.then(createApplicationMenu)
|
||||||
.then(setupTrayState)
|
|
||||||
.then(registerUpdater)
|
.then(registerUpdater)
|
||||||
.catch(e => console.error('Failed create window:', e));
|
.catch(e => console.error('Failed create window:', e));
|
||||||
|
|
||||||
|
if (isDev) {
|
||||||
|
app
|
||||||
|
.whenReady()
|
||||||
|
.then(setupRecording)
|
||||||
|
.then(setupTrayState)
|
||||||
|
.catch(e => {
|
||||||
|
logger.error('Failed setup recording or tray state:', e);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
if (process.env.SENTRY_RELEASE) {
|
if (process.env.SENTRY_RELEASE) {
|
||||||
// https://docs.sentry.io/platforms/javascript/guides/electron/
|
// https://docs.sentry.io/platforms/javascript/guides/electron/
|
||||||
Sentry.init({
|
Sentry.init({
|
||||||
|
|||||||
Reference in New Issue
Block a user