diff --git a/public/src/app.js b/public/src/app.js index 93d5bbd181..d032a303b4 100644 --- a/public/src/app.js +++ b/public/src/app.js @@ -42,6 +42,7 @@ var socket, }); }, 1000); reconnecting = false; + socket.emit('api:updateHeader', { fields: ['username', 'picture', 'userslug'] }); } }); @@ -110,7 +111,7 @@ var socket, function startTimeout(div, timeout) { var timeoutId = setTimeout(function() { $(div).fadeOut(1000, function() { - this.remove(); + $(this).remove(); }); }, timeout);