mirror of
https://github.com/ha7ilm/openwebrx.git
synced 2026-04-04 14:07:32 +00:00
parse metadata on the server side
This commit is contained in:
parent
05f6fff8f6
commit
14f932eea8
3 changed files with 11 additions and 8 deletions
|
|
@ -1309,13 +1309,7 @@ function on_ws_recv(evt)
|
|||
}
|
||||
}
|
||||
|
||||
function update_metadata(stringData) {
|
||||
var meta = {};
|
||||
stringData.split(";").forEach(function(s) {
|
||||
var item = s.split(":");
|
||||
meta[item[0]] = item[1];
|
||||
});
|
||||
|
||||
function update_metadata(meta) {
|
||||
var update = function(_, el) {
|
||||
el.innerHTML = "";
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue