fix: view.websocket (fixed update)

This commit is contained in:
xdrm-brackets 2017-12-08 00:39:43 +01:00 committed by SeekDaSky
parent 1400d445ee
commit 94ad405dee
1 changed files with 2 additions and 2 deletions

View File

@ -55,7 +55,7 @@ window.wsc_emergency = wsc.channel('emergency/31').listen(function(msg, err){
// {1} Update messages in stack // // {1} Update messages in stack //
for( var id in gstore.data.notif.emergency.data ) for( var id in gstore.data.notif.emergency.data )
if( msg.upd[ gstore.data.notif.emergency.data[id].id ] != null ) if( msg.upd[ gstore.data.notif.emergency.data[id].id ] != null )
gstore.data.notif.emergency.data[id] = msg.upd; gstore.data.notif.emergency.data[id].message = msg.upd[ gstore.data.notif.emergency.data[id].id ].message;
} }
@ -118,7 +118,7 @@ window.wsc_event = wsc.channel('event/31').listen(function(msg, err){
// {1} Update messages in stack // // {1} Update messages in stack //
for( var id in gstore.data.notif.event.data ) for( var id in gstore.data.notif.event.data )
if( msg.upd[ gstore.data.notif.event.data[id].id ] != null ) if( msg.upd[ gstore.data.notif.event.data[id].id ] != null )
gstore.data.notif.event.data[id] = msg.upd; gstore.data.notif.event.data[id].message = msg.upd[ gstore.data.notif.event.data[id].id ].message;
} }