features no longer used on this level

This commit is contained in:
Jakob Ketterl 2020-04-26 17:19:05 +02:00
parent 39f9d4c273
commit 449b3b3986

View File

@ -1122,13 +1122,7 @@ function on_ws_recv(evt) {
}
break;
case "features":
var features = json['value'];
Modes.setFeatures(features);
for (var feature in features) {
if (features.hasOwnProperty(feature)) {
$('[data-feature="' + feature + '"]')[features[feature] ? "show" : "hide"]();
}
}
Modes.setFeatures(json['value']);
break;
case "metadata":
update_metadata(json['value']);