Encapsulate electron bar setup

Summary: See D32311662 for details

Reviewed By: mweststrate

Differential Revision: D32357953

fbshipit-source-id: f951e82761f081876ae8e0409f00e19e87047726
This commit is contained in:
Andrey Goncharov
2021-11-12 07:12:18 -08:00
committed by Facebook GitHub Bot
parent 15a59c3aea
commit eb28fc411b
10 changed files with 366 additions and 583 deletions

View File

@@ -25,6 +25,7 @@ import {
import {getRenderHostInstance, setRenderHostInstance} from '../RenderHost';
import isProduction from '../utils/isProduction';
import fs from 'fs';
import {setupMenuBar} from './setupMenuBar';
export function initializeElectron() {
const app = remote.app;
@@ -100,6 +101,8 @@ export function initializeElectron() {
desktopPath: app.getPath('desktop'),
},
});
setupMenuBar();
}
function getStaticDir() {