diff --git a/client/dcwebui.js b/client/dcwebui.js index 30a9a5a..8d57042 100644 --- a/client/dcwebui.js +++ b/client/dcwebui.js @@ -765,10 +765,15 @@ var toggle_joinparts = function(ev) { /* */ var updateTitle = function() { - document.title = - ($(".unread").length ? "[NEW PM] " : "") + - "("+userlist.count()+") "+ - hub_hubname; + var prefix = ""; + var unrTabs = $(".unread"); + if (unrTabs.length === 1 && unrTabs[0].getAttribute('data-tab') == "tab-main") { + prefix = "[NEW] " + } else if (unrTabs.length > 0) { + prefix = "[NEW PM] " + } + + document.title = prefix + hub_hubname + "("+userlist.count()+") " }; var sock = {};