diff --git a/public/javascripts/web-socket-receiver.js b/public/javascripts/web-socket-receiver.js index 4f405ff7e..a858e30f3 100644 --- a/public/javascripts/web-socket-receiver.js +++ b/public/javascripts/web-socket-receiver.js @@ -11,8 +11,8 @@ var WSR = WebSocketReceiver = { onMessage: function(evt) { var message = $.parseJSON(evt.data); - if(message["class"].match(/^notifications$/)) { - Diaspora.page.notifications.showNotification(message); + if(message["class"].match(/^notifications/)) { + Diaspora.page.header.notifications.showNotification(message); } else { switch(message["class"]) {