Merge pull request #114 from superdump/square-and-curly
counter: Allow for [x] and {x} forms of notification count
This commit is contained in:
commit
29b5af94c3
|
@ -72,7 +72,7 @@ function createMainWindow(options, onAppQuit, setDockBadge) {
|
|||
}
|
||||
|
||||
if (options.counter) {
|
||||
const itemCountRegex = /[\(](\d*?)[\)]/;
|
||||
const itemCountRegex = /[\(\[{](\d*?)[}\]\)]/;
|
||||
const match = itemCountRegex.exec(mainWindow.getTitle());
|
||||
if (match) {
|
||||
setDockBadge(match[1]);
|
||||
|
|
Loading…
Reference in New Issue