add metadata pipe to allow digital protocol information to be displayed in the website

This commit is contained in:
Jakob Ketterl
2016-11-11 20:56:17 +00:00
parent 49e3bd3b80
commit 7700214e5f
4 changed files with 42 additions and 5 deletions

View File

@ -1221,7 +1221,16 @@ function on_ws_recv(evt)
{
divlog("Received invalid message over WebSocket.");
}*/
}
} else if (firstChars=='MET')
{
var stringData=arrayBufferToString(evt.data);
var metaPanels = Array.prototype.filter.call(document.getElementsByClassName('openwebrx-panel'), function(el) {
return el.dataset.panelName == 'metadata';
});
metaPanels.forEach(function(el) {
el.innerHTML = stringData;
});
}
}