Fix insignificant number of arguments bug on Windows (#108)

This commit is contained in:
Quang Lam 2020-01-09 14:40:26 -06:00 committed by GitHub
parent e55f3f8e8c
commit 7f82e2018e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -294,10 +294,10 @@ const addView = (browserWindow, workspace) => {
if (count > 0) {
browserWindow.setOverlayIcon(
path.resolve(__dirname, '..', 'overlay-icon.png'),
'You have new notifications',
`You have ${count} new messages.`,
);
} else {
browserWindow.setOverlayIcon(null);
browserWindow.setOverlayIcon(null, '');
}
}
});