(count)
| 10 | import { app } from 'electron'; |
| 11 | |
| 12 | export function setBadge(count) { |
| 13 | const badgeCount = parseInt(count, 10); |
| 14 | if (!isNaN(badgeCount)) { |
| 15 | app.setBadgeCount(badgeCount); |
| 16 | } |
| 17 | } |
| 18 | |
| 19 | // Function to clear badge |
| 20 | export function clearBadge() { |