mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
Only set application menu on OS X.
This commit is contained in:
@@ -156,9 +156,12 @@ app.on('finish-launching', function() {
|
||||
];
|
||||
|
||||
menu = Menu.buildFromTemplate(template);
|
||||
Menu.setApplicationMenu(menu);
|
||||
|
||||
if (process.platform == 'darwin')
|
||||
Menu.setApplicationMenu(menu);
|
||||
|
||||
ipc.on('message', function(processId, routingId, type) {
|
||||
console.log(type);
|
||||
if (type == 'menu')
|
||||
menu.popup(mainWindow);
|
||||
});
|
||||
|
||||
@@ -7,7 +7,6 @@
|
||||
This is the default mode of Atom Shell, please follow the instructions in
|
||||
wiki to get started.
|
||||
<script type="text/javascript" charset="utf-8">
|
||||
|
||||
var ipc = require('ipc');
|
||||
|
||||
window.addEventListener('contextmenu', function (e) {
|
||||
|
||||
Reference in New Issue
Block a user