Encapsulate electron bar setup
Summary: See D32311662 for details Reviewed By: mweststrate Differential Revision: D32357953 fbshipit-source-id: f951e82761f081876ae8e0409f00e19e87047726
This commit is contained in:
committed by
Facebook GitHub Bot
parent
15a59c3aea
commit
eb28fc411b
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user