Fixes for Electron 7

This commit is contained in:
Feross Aboukhadijeh
2019-10-23 13:19:21 -07:00
parent d538a23ad0
commit 3e5fdcf6b9

View File

@@ -34,7 +34,7 @@ function setBadge (count) {
if (process.platform === 'darwin' ||
(process.platform === 'linux' && app.isUnityRunning())) {
log(`setBadge: ${count}`)
app.setBadgeCount(Number(count))
app.badgeCount = Number(count)
}
}