fix: view.websocket (object length fixes '/emergency' notification count)

This commit is contained in:
xdrm-brackets 2017-12-08 00:05:52 +01:00 committed by SeekDaSky
parent f3e3f1496b
commit 97c6dcf8be
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ window.wsc_emergency = wsc.channel('emergency/31').listen(function(msg, err){
// {3} Add notification count if not already on page // // {3} Add notification count if not already on page //
if( router.app.$route.path != '/emergency' ) if( router.app.$route.path != '/emergency' )
gstore.data.notif.emergency.count += msg.add.length; gstore.data.notif.emergency.count += Object.keys(msg.add).length;
} }