Skip to content

Commit

Permalink
fix for inconsistent feedback function
Browse files Browse the repository at this point in the history
to close #270
  • Loading branch information
dceejay committed May 3, 2024
1 parent efd7a22 commit ffe0e87
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion worldmap/worldmap.js
Original file line number Diff line number Diff line change
Expand Up @@ -869,7 +869,8 @@ var feedback = function(n,v,a,c) {
if (markers[n]) {
console.log("FB1",n,v,a,c)
allData[n].action = a || "feedback";
if (v !== undefined) { allData[n][a||"value"] = v; }
//if (v !== undefined) { allData[n][a||"value"] = v; }
if (v !== undefined) { allData[n]["value"] = v; }
ws.send(JSON.stringify(allData[n]));
setMarker(allData[n]);
}
Expand Down

0 comments on commit ffe0e87

Please sign in to comment.