From 88754406021f61a7fd62606db38d04c48c7f62c7 Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Thu, 7 Dec 2017 23:27:39 +0100 Subject: [PATCH] minfix --- view/websocket.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/view/websocket.js b/view/websocket.js index bbabe05..8807d0f 100644 --- a/view/websocket.js +++ b/view/websocket.js @@ -47,7 +47,7 @@ window.wsc_emergency = wsc.channel('emergency/31').listen(function(msg, err){ // {1} Rem messages from stack // for( var id of gstore.data.notif.emergency.data ) - if( msg.del.indexOf(gstore.data.notif.emergency.data[id].id) > -1 ) + if( msg.del[ gstore.data.notif.emergency.data[id].id ] != null ) delete gstore.data.notif.emergency.data[id]; } @@ -57,7 +57,7 @@ window.wsc_emergency = wsc.channel('emergency/31').listen(function(msg, err){ // {1} Update messages in stack // for( var id of gstore.data.notif.emergency.data ) - if( msg.del.indexOf(gstore.data.notif.emergency.data[id].id) > -1 ) + if( msg.upd[ gstore.data.notif.emergency.data[id].id ] != null ) gstore.data.notif.emergency.data[id] = msg.upd; }