hide (0) from page title

This commit is contained in:
mappu 2017-10-16 18:33:43 +13:00
parent efa195df5b
commit 855206feed

View File

@ -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 = {};