Fix incrementMsgCounter cleaning up after itself

This commit is contained in:
laszlovl 2020-01-27 17:39:35 +01:00 committed by JC Brand
parent ee6b8be7ad
commit cde6b093c0

View File

@ -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}) `);
}
};