From bdf119700c73815ef853d9c8ba6e671d761b6fb5 Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Fri, 8 Dec 2017 00:06:34 +0100 Subject: [PATCH] fix: view.websocket (object length fixes '/event' notification count) --- view/websocket.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/view/websocket.js b/view/websocket.js index 634d1af..24b2d53 100644 --- a/view/websocket.js +++ b/view/websocket.js @@ -98,7 +98,7 @@ window.wsc_event = wsc.channel('event/31').listen(function(msg, err){ // {3} Add notification count if not already on page // if( router.app.$route.path != '/event' ) - gstore.data.notif.event.count += msg.add.length; + gstore.data.notif.event.count += Object.keys(msg.add).length; }