From a5e95c3b4f5cbbec7916315c1a403527732422d6 Mon Sep 17 00:00:00 2001 From: AkiraFukushima Date: Thu, 14 Jun 2018 22:40:29 +0900 Subject: [PATCH] refs #393 Guard setting badge unless macOS --- src/main/index.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/main/index.js b/src/main/index.js index 7e457b35..26a81864 100644 --- a/src/main/index.js +++ b/src/main/index.js @@ -397,7 +397,9 @@ ipcMain.on('remove-all-accounts', (event, _) => { // badge ipcMain.on('reset-badge', () => { - app.dock.setBadge('') + if (process.platform === 'darwin') { + app.dock.setBadge('') + } }) // streaming @@ -423,8 +425,10 @@ ipcMain.on('start-user-streaming', (event, ac) => { event.sender.send('update-start-user-streaming', update) }, (notification) => { - app.dock.setBadge('•') event.sender.send('notification-start-user-streaming', notification) + if (process.platform === 'darwin') { + app.dock.setBadge('•') + } }, (err) => { log.error(err)