fixed notification counter increment via websocket

This commit is contained in:
Jonne Hass 2011-11-09 17:26:16 +01:00
parent 59b99fe917
commit 22dc8f44ef

View file

@ -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"]) {