From 4699fe9e70d35a9d73214b701649f3c19ce68f42 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/view/websocket.js b/view/websocket.js index bbabe05..b46fa50 100644 --- a/view/websocket.js +++ b/view/websocket.js @@ -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.del[ gstore.data.notif.emergency.data[id].id ] != null ) gstore.data.notif.emergency.data[id] = msg.upd; }