From cde6b093c057e453242dbb3e8a034163b344bd1d Mon Sep 17 00:00:00 2001 From: laszlovl Date: Mon, 27 Jan 2020 17:39:35 +0100 Subject: [PATCH] Fix incrementMsgCounter cleaning up after itself --- src/headless/converse-chatboxes.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/headless/converse-chatboxes.js b/src/headless/converse-chatboxes.js index 31e3bb1f7..b810396ad 100644 --- a/src/headless/converse-chatboxes.js +++ b/src/headless/converse-chatboxes.js @@ -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}) `); } };