Fix incrementMsgCounter cleaning up after itself
This commit is contained in:
parent
ee6b8be7ad
commit
cde6b093c0
@ -46,7 +46,7 @@ converse.plugins.add('converse-chatboxes', {
|
||||
if (title.search(/^Messages \(\d+\) /) === -1) {
|
||||
document.title = `Messages (${msg_counter}) ${title}`;
|
||||
} else {
|
||||
document.title = title.replace(/^Messages \(\d+\) /, `Messages (${msg_counter})`);
|
||||
document.title = title.replace(/^Messages \(\d+\) /, `Messages (${msg_counter}) `);
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user