mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
Make app.setApplicationMenu an alias to Menu.setApplicationMenu.
This commit is contained in:
@@ -13,6 +13,9 @@ app.getHomeDir = ->
|
||||
app.getBrowserWindows = ->
|
||||
objectsRegistry.getAllWindows()
|
||||
|
||||
app.setApplicationMenu = (menu) ->
|
||||
require('menu').setApplicationMenu menu
|
||||
|
||||
app.commandLine =
|
||||
appendSwitch: bindings.appendSwitch,
|
||||
appendArgument: bindings.appendArgument
|
||||
|
||||
Reference in New Issue
Block a user