Linux: Support showing badge count

This was a macOS-only API before, but it's cross-platform now via
`app.setBadgeCount()`
This commit is contained in:
Feross Aboukhadijeh
2016-07-25 15:37:29 -07:00
parent 1b3b6fef10
commit ad62bbd9d3
2 changed files with 5 additions and 6 deletions

View File

@@ -146,7 +146,7 @@ function updateElectron () {
}
if (state.dock.badge !== state.prev.badge) {
state.prev.badge = state.dock.badge
ipcRenderer.send('setBadge', state.dock.badge || '')
ipcRenderer.send('setBadge', state.dock.badge || 0)
}
}