minfix
This commit is contained in:
parent
1327cfebda
commit
ce31a026c5
|
@ -46,7 +46,7 @@ window.wsc_emergency = wsc.channel('emergency/31').listen(function(msg, err){
|
|||
if( msg.del != null ){
|
||||
|
||||
// {1} Rem messages from stack //
|
||||
for( var id of gstore.data.notif.emergency.data )
|
||||
for( var id in gstore.data.notif.emergency.data )
|
||||
if( msg.del[ gstore.data.notif.emergency.data[id].id ] != null )
|
||||
delete gstore.data.notif.emergency.data[id];
|
||||
|
||||
|
@ -56,7 +56,7 @@ window.wsc_emergency = wsc.channel('emergency/31').listen(function(msg, err){
|
|||
if( msg.upd != null ){
|
||||
|
||||
// {1} Update messages in stack //
|
||||
for( var id of 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 )
|
||||
gstore.data.notif.emergency.data[id] = msg.upd;
|
||||
|
||||
|
|
Loading…
Reference in New Issue