1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

do not show empty parentheses ‚()‘

This commit is contained in:
Steffen Vogel 2017-05-01 16:57:54 +02:00
parent 341c05bc3d
commit 982136508b

View file

@ -235,7 +235,7 @@ function wsConnect(node)
console.log('WebSocket connection closed', error);
$('#status')
.text('Disconnected (' + error.reason + ')')
.text('Disconnected' + (error.reason != '' ? ' (' + error.reason + ')' : ''))
.css('color', 'red');
/* Try connect if close reason was CLOSE_NORMAL */