fixed notification counter increment via websocket
This commit is contained in:
parent
59b99fe917
commit
22dc8f44ef
1 changed files with 2 additions and 2 deletions
|
|
@ -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"]) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue