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) {
|
onMessage: function(evt) {
|
||||||
var message = $.parseJSON(evt.data);
|
var message = $.parseJSON(evt.data);
|
||||||
|
|
||||||
if(message["class"].match(/^notifications$/)) {
|
if(message["class"].match(/^notifications/)) {
|
||||||
Diaspora.page.notifications.showNotification(message);
|
Diaspora.page.header.notifications.showNotification(message);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
switch(message["class"]) {
|
switch(message["class"]) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue