Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
let uiState = app.info.uiState;
if (uiState == 'linux' || uiState == 'mac') {
menu = buildNativeMenu(app);
} else {
menu = buildPhosphorMenu(app);
}
return menu;
}
};
/**
* Override Main Menu plugin from apputils-extension
*/
plugin[0] = nativeMainMenuPlugin;
plugin.push(serverManagerPlugin);
export default plugin;