diff --git a/client/dcwebui.js b/client/dcwebui.js
index b542a2a..9a48d5d 100644
--- a/client/dcwebui.js
+++ b/client/dcwebui.js
@@ -786,7 +786,7 @@ var updateTitle = function() {
var sock = {};
var hub_state = 0; // [disconnected, sent-nick, connected]
var hub_last_nick = '';
-var hub_hubname = DCWEBUI_CONF.title;
+var hub_hubname = "Loading...";
var pm_tabs = {}; // nick => tabid
var next_tabid = 1;
@@ -918,7 +918,8 @@ var transition = function(new_state) {
$("#chatbox").disabled = true;
} break;
- case STATE_ACTIVE: {
+ case STATE_ACTIVE: {
+ write("tab-main").system("Now talking on "+hub_hubname);
$("#chatbox").disabled = false;
$("#chatbox").spellcheck = true;
} break;
@@ -941,7 +942,7 @@ window.onload = function() {
show_joins = persistence_get("show_joins", false);
- document.title = DCWEBUI_CONF.title;
+ document.title = hub_hubname; // "Loading...";
// HTML event handlers
@@ -1063,7 +1064,6 @@ window.onload = function() {
}
});
sock.on('hubname', function(s) {
- write("tab-main").system("Now talking on "+s);
hub_hubname = s;
updateTitle();
});
diff --git a/client/index.htm b/client/index.htm
index 25ed861..c495e0d 100644
--- a/client/index.htm
+++ b/client/index.htm
@@ -53,7 +53,6 @@
-