only work with header field if sync is available

This commit is contained in:
Jakob Ketterl 2021-06-08 14:05:17 +02:00
parent 2be58503c6
commit 6c2ba7bc1d
1 changed files with 7 additions and 6 deletions

View File

@ -175,13 +175,14 @@ DStarMetaPanel.prototype.update = function(data) {
if (data['sync'] && data['sync'] == 'voice') {
this.el.find(".openwebrx-meta-slot").addClass("active");
this.setOurCall(data['ourcall']);
this.setYourCall(data['yourcall']);
this.setDeparture(data['departure']);
this.setDestination(data['destination']);
this.setMessage(data['message']);
} else {
this.clear();
}
this.setOurCall(data['ourcall']);
this.setYourCall(data['yourcall']);
this.setDeparture(data['departure']);
this.setDestination(data['destination']);
this.setMessage(data['message']);
};
DStarMetaPanel.prototype.setOurCall = function(ourcall) {