From 855206feedfd215a91cd156b70c86a2b4d4467ca Mon Sep 17 00:00:00 2001 From: mappu Date: Mon, 16 Oct 2017 18:33:43 +1300 Subject: [PATCH] hide (0) from page title --- client/dcwebui.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/client/dcwebui.js b/client/dcwebui.js index 21cd94f..c727281 100644 --- a/client/dcwebui.js +++ b/client/dcwebui.js @@ -796,7 +796,11 @@ var updateTitle = function() { prefix = "[NEW PM] " } - document.title = prefix + hub_hubname + " ("+userlist.count()+")" + var suffix = ""; + if (userlist.count() > 0) { + suffix = " ("+userlist.count()+")"; + } + document.title = prefix + hub_hubname + suffix; }; var sock = {};