feature detection for digital voice; display modulator buttons only when

available
This commit is contained in:
Jakob Ketterl
2019-05-13 19:19:15 +02:00
parent 823995d4ba
commit 2408d77f15
4 changed files with 56 additions and 6 deletions

View File

@ -1233,6 +1233,11 @@ function on_ws_recv(evt)
return '<option value="' + profile.id + '">' + profile.name + "</option>";
}).join("");
break;
case "features":
for (var feature in json.value) {
$('[data-feature="' + feature + '"')[json.value[feature] ? "show" : "hide"]();
}
break;
default:
console.warn('received message of unknown type: ' + json.type);
}