Commit 9a2ebceb authored by laszlovl's avatar laszlovl Committed by JC Brand

Fix incrementMsgCounter cleaning up after itself

parent 78b890ac
......@@ -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}) `);
}
};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment