Skip to content

Commit 9882d2a

Browse files
authored
Added spaces
1 parent 32b080f commit 9882d2a

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

openxc/tools/static/js/dashboard.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,15 @@ $(document).ready(function() {
66
socket.on('vehicle data', function(msg, cb) {
77
// console.log(msg);
88

9-
if (!msg.hasOwnProperty('name')){
9+
if (!msg.hasOwnProperty('name')) {
1010
msg.name = 'Raw-' + msg.bus + '-0x' + msg.id.toString(16);
1111
msg.value = msg.data;
1212
}
13-
if (msg.hasOwnProperty('event')){
13+
14+
if (msg.hasOwnProperty('event')) {
1415
msg.value = msg.value + ': ' + msg.event
1516
}
17+
1618
if (!(msg.name in dataPoints)) {
1719
dataPoints[msg.name] = {
1820
current_data: undefined,

0 commit comments

Comments
 (0)