[Mac] Add API for dock, fixes #46.
This commit is contained in:
parent
6e90430df5
commit
b1f88d680b
5 changed files with 76 additions and 0 deletions
|
@ -13,5 +13,11 @@ app.commandLine =
|
|||
appendSwitch: bindings.appendSwitch,
|
||||
appendArgument: bindings.appendArgument
|
||||
|
||||
if process.platform is 'darwin'
|
||||
app.dock =
|
||||
bounce: (type = 'informational') -> bindings.dockBounce type
|
||||
cancelBounce: bindings.dockCancelBounce
|
||||
setBadge: bindings.dockSetBadgeText
|
||||
|
||||
# Only one App object pemitted.
|
||||
module.exports = app
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue