diff --git a/views/include/websocket.html b/views/include/websocket.html index 70ead1715ea8e535a1b00f24c95ce3ae7be15f69..84c8f27f624aa4d093f1730df08c5af098a01f85 100644 --- a/views/include/websocket.html +++ b/views/include/websocket.html @@ -10,6 +10,9 @@ ws.onmessage = function(e) { var firstColon = e.data.indexOf(":"); if(firstColon === -1) { + if(e.data.startsWith("+") || e.data.startsWith("-")) { + return; + } set_error("{{=T('Invalid WebSocket data received')}}: '" + e.data + "'"); return; }