Browse Source

Merge pull request #1250 from JakobStruye/dock-unread-fix

Ignore service name when extracting #unreads from window title
pull/1216/merge
Ramiro Saenz 7 years ago committed by GitHub
parent
commit
8094752efb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      electron/main.js

1
electron/main.js

@ -275,6 +275,7 @@ function createMasterPasswordWindow() {
}
function updateBadge(title) {
title = title.split(" - ")[0]; //Discard service name if present, could also contain digits
var messageCount = title.match(/\d+/g) ? parseInt(title.match(/\d+/g).join("")) : 0;
tray.setBadge(messageCount, config.get('systemtray_indicator'));

Loading…
Cancel
Save